Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: src/v8natives.js

Issue 1132513003: Call builtin code wrapped in functions from the bootstrapper. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix extra natives Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/uri.js ('k') | src/weak-collection.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index e2668803a1941d2d88c5d781b2f444a0f7f66b51..ce54c758ed923b10ecf80a44dc37acb241386bcf 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -32,7 +32,7 @@ var $setUpLockedPrototype;
var $toCompletePropertyDescriptor;
var $toNameArray;
-(function() {
+(function(global, shared, exports) {
%CheckIsBootstrapping();
@@ -212,7 +212,7 @@ function GlobalParseFloat(string) {
function GlobalEval(x) {
if (!IS_STRING(x)) return x;
- var global_proxy = %GlobalProxy(global);
+ var global_proxy = %GlobalProxy(GlobalEval);
var f = %CompileString(x, false);
if (!IS_FUNCTION(f)) return f;
@@ -322,7 +322,7 @@ function ObjectPropertyIsEnumerable(V) {
function ObjectDefineGetter(name, fun) {
var receiver = this;
if (receiver == null && !IS_UNDETECTABLE(receiver)) {
- receiver = %GlobalProxy(global);
+ receiver = %GlobalProxy(ObjectDefineGetter);
}
if (!IS_SPEC_FUNCTION(fun)) {
throw MakeTypeError(kObjectGetterExpectingFunction);
@@ -338,7 +338,7 @@ function ObjectDefineGetter(name, fun) {
function ObjectLookupGetter(name) {
var receiver = this;
if (receiver == null && !IS_UNDETECTABLE(receiver)) {
- receiver = %GlobalProxy(global);
+ receiver = %GlobalProxy(ObjectLookupGetter);
}
return %LookupAccessor(TO_OBJECT_INLINE(receiver), $toName(name), GETTER);
}
@@ -347,7 +347,7 @@ function ObjectLookupGetter(name) {
function ObjectDefineSetter(name, fun) {
var receiver = this;
if (receiver == null && !IS_UNDETECTABLE(receiver)) {
- receiver = %GlobalProxy(global);
+ receiver = %GlobalProxy(ObjectDefineSetter);
}
if (!IS_SPEC_FUNCTION(fun)) {
throw MakeTypeError(kObjectSetterExpectingFunction);
@@ -363,7 +363,7 @@ function ObjectDefineSetter(name, fun) {
function ObjectLookupSetter(name) {
var receiver = this;
if (receiver == null && !IS_UNDETECTABLE(receiver)) {
- receiver = %GlobalProxy(global);
+ receiver = %GlobalProxy(ObjectLookupSetter);
}
return %LookupAccessor(TO_OBJECT_INLINE(receiver), $toName(name), SETTER);
}
@@ -1893,7 +1893,7 @@ function NewFunctionString(args, function_token) {
function FunctionConstructor(arg1) { // length == 1
var source = NewFunctionString(arguments, 'function');
- var global_proxy = %GlobalProxy(global);
+ var global_proxy = %GlobalProxy(FunctionConstructor);
// Compile the string in the constructor and not a helper so that errors
// appear to come from here.
var f = %_CallFunction(global_proxy, %CompileString(source, true));
@@ -1964,4 +1964,4 @@ $setUpLockedPrototype = SetUpLockedPrototype;
$toCompletePropertyDescriptor = ToCompletePropertyDescriptor;
$toNameArray = ToNameArray;
-})();
+})
« no previous file with comments | « src/uri.js ('k') | src/weak-collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698