-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into nektro-patch-38534
- Loading branch information
Showing
93 changed files
with
1,918 additions
and
1,244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
#include "V8Boolean.h" | ||
#include "V8HandleScope.h" | ||
#include "v8_compatibility_assertions.h" | ||
|
||
ASSERT_V8_TYPE_LAYOUT_MATCHES(v8::Boolean) | ||
|
||
namespace v8 { | ||
|
||
bool Boolean::Value() const | ||
{ | ||
return localToJSValue(Isolate::GetCurrent()->globalInternals()).asBoolean(); | ||
JSC::JSValue jsv = localToOddball(); | ||
if (jsv.isTrue()) { | ||
return true; | ||
} else if (jsv.isFalse()) { | ||
return false; | ||
} else { | ||
RELEASE_ASSERT_NOT_REACHED("non-Boolean passed to Boolean::Value"); | ||
} | ||
} | ||
|
||
Local<Boolean> Boolean::New(Isolate* isolate, bool value) | ||
{ | ||
return isolate->currentHandleScope()->createLocal<Boolean>(isolate->vm(), JSC::jsBoolean(value)); | ||
} | ||
|
||
} | ||
} // namespace v8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
#include "V8Context.h" | ||
#include "v8_compatibility_assertions.h" | ||
|
||
ASSERT_V8_TYPE_LAYOUT_MATCHES(v8::Context) | ||
|
||
namespace v8 { | ||
|
||
Isolate* Context::GetIsolate() | ||
{ | ||
return reinterpret_cast<Isolate*>(localToPointer()); | ||
return globalObject()->V8GlobalInternals()->isolate(); | ||
} | ||
|
||
} | ||
} // namespace v8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.