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

Side by Side Diff: src/compiler/linkage.cc

Issue 1626423003: Support computed properties for ES2015 Function.name (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Mostly working Created 4 years, 10 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 unified diff | Download patch
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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/frame.h" 9 #include "src/compiler/frame.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 142
143 // static 143 // static
144 int Linkage::FrameStateInputCount(Runtime::FunctionId function) { 144 int Linkage::FrameStateInputCount(Runtime::FunctionId function) {
145 // Most runtime functions need a FrameState. A few chosen ones that we know 145 // Most runtime functions need a FrameState. A few chosen ones that we know
146 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize 146 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize
147 // are blacklisted here and can be called without a FrameState. 147 // are blacklisted here and can be called without a FrameState.
148 switch (function) { 148 switch (function) {
149 case Runtime::kAllocateInTargetSpace: 149 case Runtime::kAllocateInTargetSpace:
150 case Runtime::kCreateIterResultObject: 150 case Runtime::kCreateIterResultObject:
151 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe?
152 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? 151 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe?
Benedikt Meurer 2016/02/03 05:14:51 Maybe include kDefineDataPropertyInLiteral here in
adamk 2016/02/03 19:04:59 Done.
153 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? 152 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe?
154 case Runtime::kFinalizeClassDefinition: // TODO(conradw): Is it safe? 153 case Runtime::kFinalizeClassDefinition: // TODO(conradw): Is it safe?
155 case Runtime::kForInDone: 154 case Runtime::kForInDone:
156 case Runtime::kForInStep: 155 case Runtime::kForInStep:
157 case Runtime::kGetSuperConstructor: 156 case Runtime::kGetSuperConstructor:
158 case Runtime::kIsFunction: 157 case Runtime::kIsFunction:
159 case Runtime::kNewClosure: 158 case Runtime::kNewClosure:
160 case Runtime::kNewClosure_Tenured: 159 case Runtime::kNewClosure_Tenured:
161 case Runtime::kNewFunctionContext: 160 case Runtime::kNewFunctionContext:
162 case Runtime::kPushBlockContext: 161 case Runtime::kPushBlockContext:
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 } else { 529 } else {
531 DCHECK(loc == regloc(kContextRegister)); 530 DCHECK(loc == regloc(kContextRegister));
532 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); 531 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot);
533 } 532 }
534 } 533 }
535 534
536 535
537 } // namespace compiler 536 } // namespace compiler
538 } // namespace internal 537 } // namespace internal
539 } // namespace v8 538 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698