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-factory.h" | 5 #include "src/code-factory.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // static | 30 // static |
31 Callable CodeFactory::LoadICInOptimizedCode(Isolate* isolate) { | 31 Callable CodeFactory::LoadICInOptimizedCode(Isolate* isolate) { |
32 auto code = LoadIC::initialize_stub_in_optimized_code(isolate); | 32 auto code = LoadIC::initialize_stub_in_optimized_code(isolate); |
33 return Callable(code, LoadWithVectorDescriptor(isolate)); | 33 return Callable(code, LoadWithVectorDescriptor(isolate)); |
34 } | 34 } |
35 | 35 |
36 // static | 36 // static |
37 Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) { | 37 Callable CodeFactory::LoadGlobalIC(Isolate* isolate, TypeofMode typeof_mode) { |
38 LoadGlobalICTrampolineStub stub(isolate, LoadGlobalICState(typeof_mode)); | 38 LoadGlobalICTrampolineStub stub(isolate, LoadGlobalICState(typeof_mode)); |
39 return Callable(stub.GetCode(), LoadDescriptor(isolate)); | 39 return Callable(stub.GetCode(), LoadGlobalDescriptor(isolate)); |
40 } | 40 } |
41 | 41 |
42 // static | 42 // static |
43 Callable CodeFactory::LoadGlobalICInOptimizedCode(Isolate* isolate, | 43 Callable CodeFactory::LoadGlobalICInOptimizedCode(Isolate* isolate, |
44 TypeofMode typeof_mode) { | 44 TypeofMode typeof_mode) { |
45 auto code = LoadGlobalIC::initialize_stub_in_optimized_code( | 45 auto code = LoadGlobalIC::initialize_stub_in_optimized_code( |
46 isolate, LoadGlobalICState(typeof_mode).GetExtraICState()); | 46 isolate, LoadGlobalICState(typeof_mode).GetExtraICState()); |
47 return Callable(code, LoadWithVectorDescriptor(isolate)); | 47 return Callable(code, LoadGlobalWithVectorDescriptor(isolate)); |
48 } | 48 } |
49 | 49 |
50 // static | 50 // static |
51 Callable CodeFactory::KeyedLoadIC(Isolate* isolate) { | 51 Callable CodeFactory::KeyedLoadIC(Isolate* isolate) { |
52 KeyedLoadICTrampolineStub stub(isolate); | 52 KeyedLoadICTrampolineStub stub(isolate); |
53 return Callable(stub.GetCode(), LoadDescriptor(isolate)); | 53 return Callable(stub.GetCode(), LoadDescriptor(isolate)); |
54 } | 54 } |
55 | 55 |
56 | 56 |
57 // static | 57 // static |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 // static | 579 // static |
580 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 580 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
581 // Note: If we ever use fpregs in the interpreter then we will need to | 581 // Note: If we ever use fpregs in the interpreter then we will need to |
582 // save fpregs too. | 582 // save fpregs too. |
583 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 583 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
584 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 584 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
585 } | 585 } |
586 | 586 |
587 } // namespace internal | 587 } // namespace internal |
588 } // namespace v8 | 588 } // namespace v8 |
OLD | NEW |