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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 }; | 430 }; |
431 | 431 |
432 | 432 |
433 class HydrogenCodeStub : public CodeStub { | 433 class HydrogenCodeStub : public CodeStub { |
434 public: | 434 public: |
435 enum InitializationState { | 435 enum InitializationState { |
436 UNINITIALIZED, | 436 UNINITIALIZED, |
437 INITIALIZED | 437 INITIALIZED |
438 }; | 438 }; |
439 | 439 |
440 HydrogenCodeStub(Isolate* isolate, InitializationState state = INITIALIZED) | 440 explicit HydrogenCodeStub(Isolate* isolate, |
| 441 InitializationState state = INITIALIZED) |
441 : CodeStub(isolate) { | 442 : CodeStub(isolate) { |
442 is_uninitialized_ = (state == UNINITIALIZED); | 443 is_uninitialized_ = (state == UNINITIALIZED); |
443 } | 444 } |
444 | 445 |
445 virtual Code::Kind GetCodeKind() const { return Code::STUB; } | 446 virtual Code::Kind GetCodeKind() const { return Code::STUB; } |
446 | 447 |
447 CodeStubInterfaceDescriptor* GetInterfaceDescriptor() { | 448 CodeStubInterfaceDescriptor* GetInterfaceDescriptor() { |
448 return isolate()->code_stub_interface_descriptor(MajorKey()); | 449 return isolate()->code_stub_interface_descriptor(MajorKey()); |
449 } | 450 } |
450 | 451 |
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2525 | 2526 |
2526 | 2527 |
2527 class CallDescriptors { | 2528 class CallDescriptors { |
2528 public: | 2529 public: |
2529 static void InitializeForIsolate(Isolate* isolate); | 2530 static void InitializeForIsolate(Isolate* isolate); |
2530 }; | 2531 }; |
2531 | 2532 |
2532 } } // namespace v8::internal | 2533 } } // namespace v8::internal |
2533 | 2534 |
2534 #endif // V8_CODE_STUBS_H_ | 2535 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |