OLD | NEW |
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 #ifndef V8_CODE_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2449 ElementsKind to_kind() const { return to_kind_; } | 2449 ElementsKind to_kind() const { return to_kind_; } |
2450 bool is_jsarray() const { return is_jsarray_; } | 2450 bool is_jsarray() const { return is_jsarray_; } |
2451 KeyedAccessStoreMode store_mode() const { return store_mode_; } | 2451 KeyedAccessStoreMode store_mode() const { return store_mode_; } |
2452 | 2452 |
2453 virtual Handle<Code> GenerateCode() V8_OVERRIDE; | 2453 virtual Handle<Code> GenerateCode() V8_OVERRIDE; |
2454 | 2454 |
2455 virtual void InitializeInterfaceDescriptor( | 2455 virtual void InitializeInterfaceDescriptor( |
2456 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE; | 2456 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE; |
2457 | 2457 |
2458 // Parameters accessed via CodeStubGraphBuilder::GetParameter() | 2458 // Parameters accessed via CodeStubGraphBuilder::GetParameter() |
2459 enum RegisterInfo { | 2459 enum ParameterIndices { |
2460 kValueIndex, | 2460 kValueIndex, |
2461 kMapIndex, | 2461 kMapIndex, |
2462 kKeyIndex, | 2462 kKeyIndex, |
2463 kObjectIndex, | 2463 kObjectIndex, |
2464 kRegisterArgumentCount | 2464 kParameterCount |
2465 }; | 2465 }; |
2466 | 2466 |
2467 static const Register ValueRegister() { | 2467 static const Register ValueRegister() { |
2468 return KeyedStoreIC::ValueRegister(); | 2468 return KeyedStoreIC::ValueRegister(); |
2469 } | 2469 } |
2470 static const Register MapRegister() { return KeyedStoreIC::MapRegister(); } | 2470 static const Register MapRegister() { return KeyedStoreIC::MapRegister(); } |
2471 static const Register KeyRegister() { return KeyedStoreIC::NameRegister(); } | 2471 static const Register KeyRegister() { return KeyedStoreIC::NameRegister(); } |
2472 static const Register ObjectRegister() { | 2472 static const Register ObjectRegister() { |
2473 return KeyedStoreIC::ReceiverRegister(); | 2473 return KeyedStoreIC::ReceiverRegister(); |
2474 } | 2474 } |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2558 | 2558 |
2559 | 2559 |
2560 class CallDescriptors { | 2560 class CallDescriptors { |
2561 public: | 2561 public: |
2562 static void InitializeForIsolate(Isolate* isolate); | 2562 static void InitializeForIsolate(Isolate* isolate); |
2563 }; | 2563 }; |
2564 | 2564 |
2565 } } // namespace v8::internal | 2565 } } // namespace v8::internal |
2566 | 2566 |
2567 #endif // V8_CODE_STUBS_H_ | 2567 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |