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

Side by Side Diff: src/bootstrapper.cc

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/js/messages.js » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 native_context()->set_symbol_function(*symbol_fun); 1206 native_context()->set_symbol_function(*symbol_fun);
1207 } 1207 }
1208 1208
1209 { // --- D a t e --- 1209 { // --- D a t e ---
1210 // Builtin functions for Date.prototype. 1210 // Builtin functions for Date.prototype.
1211 InstallFunction(global, "Date", JS_DATE_TYPE, JSDate::kSize, 1211 InstallFunction(global, "Date", JS_DATE_TYPE, JSDate::kSize,
1212 isolate->initial_object_prototype(), Builtins::kIllegal); 1212 isolate->initial_object_prototype(), Builtins::kIllegal);
1213 } 1213 }
1214 1214
1215 1215
1216 { // --- P r o x y ---
1217 InstallFunction(global, "Proxy", JS_PROXY_TYPE, JSProxy::kSize,
1218 isolate->initial_object_prototype(), Builtins::kIllegal);
1219 }
1220
1221
1216 { // -- R e g E x p 1222 { // -- R e g E x p
1217 // Builtin functions for RegExp.prototype. 1223 // Builtin functions for RegExp.prototype.
1218 Handle<JSFunction> regexp_fun = 1224 Handle<JSFunction> regexp_fun =
1219 InstallFunction(global, "RegExp", JS_REGEXP_TYPE, JSRegExp::kSize, 1225 InstallFunction(global, "RegExp", JS_REGEXP_TYPE, JSRegExp::kSize,
1220 isolate->initial_object_prototype(), 1226 isolate->initial_object_prototype(),
1221 Builtins::kIllegal); 1227 Builtins::kIllegal);
1222 native_context()->set_regexp_function(*regexp_fun); 1228 native_context()->set_regexp_function(*regexp_fun);
1223 1229
1224 DCHECK(regexp_fun->has_initial_map()); 1230 DCHECK(regexp_fun->has_initial_map());
1225 Handle<Map> initial_map(regexp_fun->initial_map()); 1231 Handle<Map> initial_map(regexp_fun->initial_map());
(...skipping 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after
3234 } 3240 }
3235 3241
3236 3242
3237 // Called when the top-level V8 mutex is destroyed. 3243 // Called when the top-level V8 mutex is destroyed.
3238 void Bootstrapper::FreeThreadResources() { 3244 void Bootstrapper::FreeThreadResources() {
3239 DCHECK(!IsActive()); 3245 DCHECK(!IsActive());
3240 } 3246 }
3241 3247
3242 } // namespace internal 3248 } // namespace internal
3243 } // namespace v8 3249 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/js/messages.js » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698