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

Side by Side Diff: src/bootstrapper.cc

Issue 1531683002: [proxies] Implement Proxy.name (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/objects-printer.cc » ('j') | no next file with comments »
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 2302 matching lines...) Expand 10 before | Expand all | Expand 10 after
2313 Isolate* isolate = global->GetIsolate(); 2313 Isolate* isolate = global->GetIsolate();
2314 Factory* factory = isolate->factory(); 2314 Factory* factory = isolate->factory();
2315 2315
2316 InstallJSProxyMaps(); 2316 InstallJSProxyMaps();
2317 2317
2318 // Create the Proxy object. 2318 // Create the Proxy object.
2319 Handle<String> name = factory->Proxy_string(); 2319 Handle<String> name = factory->Proxy_string();
2320 Handle<Code> code(isolate->builtins()->ProxyConstructor()); 2320 Handle<Code> code(isolate->builtins()->ProxyConstructor());
2321 2321
2322 Handle<JSFunction> proxy_function = factory->NewFunction( 2322 Handle<JSFunction> proxy_function = factory->NewFunction(
2323 isolate->proxy_function_map(), factory->Object_string(), code); 2323 isolate->proxy_function_map(), factory->Proxy_string(), code);
2324 2324
2325 JSFunction::SetInitialMap(proxy_function, 2325 JSFunction::SetInitialMap(proxy_function,
2326 Handle<Map>(native_context()->proxy_map(), isolate), 2326 Handle<Map>(native_context()->proxy_map(), isolate),
2327 factory->null_value()); 2327 factory->null_value());
2328 2328
2329 proxy_function->shared()->set_construct_stub( 2329 proxy_function->shared()->set_construct_stub(
2330 *isolate->builtins()->ProxyConstructor_ConstructStub()); 2330 *isolate->builtins()->ProxyConstructor_ConstructStub());
2331 proxy_function->shared()->set_internal_formal_parameter_count(2); 2331 proxy_function->shared()->set_internal_formal_parameter_count(2);
2332 proxy_function->shared()->set_length(2); 2332 proxy_function->shared()->set_length(2);
2333 2333
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
3363 } 3363 }
3364 3364
3365 3365
3366 // Called when the top-level V8 mutex is destroyed. 3366 // Called when the top-level V8 mutex is destroyed.
3367 void Bootstrapper::FreeThreadResources() { 3367 void Bootstrapper::FreeThreadResources() {
3368 DCHECK(!IsActive()); 3368 DCHECK(!IsActive());
3369 } 3369 }
3370 3370
3371 } // namespace internal 3371 } // namespace internal
3372 } // namespace v8 3372 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698