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

Side by Side Diff: src/code-stubs.cc

Issue 2423053002: Install the 'name' property in classes at runtime (Closed)
Patch Set: rebased Created 4 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 | « src/bootstrapper.cc ('k') | src/contexts.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2501 matching lines...) Expand 10 before | Expand all | Expand 10 after
2512 { 2512 {
2513 map_index.Bind(assembler->SelectIntPtrConstant( 2513 map_index.Bind(assembler->SelectIntPtrConstant(
2514 is_strict, Context::STRICT_ASYNC_FUNCTION_MAP_INDEX, 2514 is_strict, Context::STRICT_ASYNC_FUNCTION_MAP_INDEX,
2515 Context::SLOPPY_ASYNC_FUNCTION_MAP_INDEX)); 2515 Context::SLOPPY_ASYNC_FUNCTION_MAP_INDEX));
2516 assembler->Goto(&load_map); 2516 assembler->Goto(&load_map);
2517 } 2517 }
2518 2518
2519 assembler->Bind(&if_class_constructor); 2519 assembler->Bind(&if_class_constructor);
2520 { 2520 {
2521 map_index.Bind( 2521 map_index.Bind(
2522 assembler->IntPtrConstant(Context::STRICT_FUNCTION_MAP_INDEX)); 2522 assembler->IntPtrConstant(Context::CLASS_FUNCTION_MAP_INDEX));
2523 assembler->Goto(&load_map); 2523 assembler->Goto(&load_map);
2524 } 2524 }
2525 2525
2526 assembler->Bind(&if_function_without_prototype); 2526 assembler->Bind(&if_function_without_prototype);
2527 { 2527 {
2528 map_index.Bind(assembler->IntPtrConstant( 2528 map_index.Bind(assembler->IntPtrConstant(
2529 Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX)); 2529 Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX));
2530 assembler->Goto(&load_map); 2530 assembler->Goto(&load_map);
2531 } 2531 }
2532 2532
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
3198 } 3198 }
3199 3199
3200 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) 3200 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
3201 : PlatformCodeStub(isolate) {} 3201 : PlatformCodeStub(isolate) {}
3202 3202
3203 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) 3203 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate)
3204 : PlatformCodeStub(isolate) {} 3204 : PlatformCodeStub(isolate) {}
3205 3205
3206 } // namespace internal 3206 } // namespace internal
3207 } // namespace v8 3207 } // namespace v8
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698