| OLD | NEW |
| 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/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 #include "src/compiler.h" | 6 #include "src/compiler.h" |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/frame.h" | 8 #include "src/compiler/frame.h" |
| 9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
| 10 #include "src/compiler/node.h" | 10 #include "src/compiler/node.h" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 case Runtime::kDateField: | 223 case Runtime::kDateField: |
| 224 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? | 224 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? |
| 225 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? | 225 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? |
| 226 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? | 226 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? |
| 227 case Runtime::kFinalizeClassDefinition: // TODO(conradw): Is it safe? | 227 case Runtime::kFinalizeClassDefinition: // TODO(conradw): Is it safe? |
| 228 case Runtime::kForInDone: | 228 case Runtime::kForInDone: |
| 229 case Runtime::kForInStep: | 229 case Runtime::kForInStep: |
| 230 case Runtime::kNewClosure: | 230 case Runtime::kNewClosure: |
| 231 case Runtime::kNewClosure_Tenured: | 231 case Runtime::kNewClosure_Tenured: |
| 232 case Runtime::kNewFunctionContext: | 232 case Runtime::kNewFunctionContext: |
| 233 case Runtime::kNewObject: |
| 233 case Runtime::kPushBlockContext: | 234 case Runtime::kPushBlockContext: |
| 234 case Runtime::kPushCatchContext: | 235 case Runtime::kPushCatchContext: |
| 235 case Runtime::kReThrow: | 236 case Runtime::kReThrow: |
| 236 case Runtime::kStringCompare: | 237 case Runtime::kStringCompare: |
| 237 case Runtime::kStringEquals: | 238 case Runtime::kStringEquals: |
| 238 case Runtime::kToFastProperties: // TODO(jarin): Is it safe? | 239 case Runtime::kToFastProperties: // TODO(jarin): Is it safe? |
| 239 case Runtime::kTraceEnter: | 240 case Runtime::kTraceEnter: |
| 240 case Runtime::kTraceExit: | 241 case Runtime::kTraceExit: |
| 241 return 0; | 242 return 0; |
| 242 case Runtime::kInlineArguments: | 243 case Runtime::kInlineArguments: |
| 243 case Runtime::kInlineArgumentsLength: | 244 case Runtime::kInlineArgumentsLength: |
| 244 case Runtime::kInlineDefaultConstructorCallSuper: | 245 case Runtime::kInlineDefaultConstructorCallSuper: |
| 245 case Runtime::kInlineGetCallerJSFunction: | 246 case Runtime::kInlineGetCallerJSFunction: |
| 246 case Runtime::kInlineGetPrototype: | 247 case Runtime::kInlineGetPrototype: |
| 248 case Runtime::kInlineIsConstructCall: |
| 247 case Runtime::kInlineRegExpExec: | 249 case Runtime::kInlineRegExpExec: |
| 248 case Runtime::kInlineSubString: | 250 case Runtime::kInlineSubString: |
| 249 case Runtime::kInlineToInteger: | 251 case Runtime::kInlineToInteger: |
| 250 case Runtime::kInlineToLength: | 252 case Runtime::kInlineToLength: |
| 251 case Runtime::kInlineToName: | 253 case Runtime::kInlineToName: |
| 252 case Runtime::kInlineToNumber: | 254 case Runtime::kInlineToNumber: |
| 253 case Runtime::kInlineToObject: | 255 case Runtime::kInlineToObject: |
| 254 case Runtime::kInlineToPrimitive_Number: | 256 case Runtime::kInlineToPrimitive_Number: |
| 255 case Runtime::kInlineToPrimitive_String: | 257 case Runtime::kInlineToPrimitive_String: |
| 256 case Runtime::kInlineToPrimitive: | 258 case Runtime::kInlineToPrimitive: |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 return LinkageLocation::ForCalleeFrameSlot(spill_index); | 563 return LinkageLocation::ForCalleeFrameSlot(spill_index); |
| 562 } else { | 564 } else { |
| 563 // Parameter. Use the assigned location from the incoming call descriptor. | 565 // Parameter. Use the assigned location from the incoming call descriptor. |
| 564 int parameter_index = 1 + index; // skip index 0, which is the target. | 566 int parameter_index = 1 + index; // skip index 0, which is the target. |
| 565 return incoming_->GetInputLocation(parameter_index); | 567 return incoming_->GetInputLocation(parameter_index); |
| 566 } | 568 } |
| 567 } | 569 } |
| 568 } // namespace compiler | 570 } // namespace compiler |
| 569 } // namespace internal | 571 } // namespace internal |
| 570 } // namespace v8 | 572 } // namespace v8 |
| OLD | NEW |