Chromium Code Reviews| 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_FACTORY_H_ | 5 #ifndef V8_CODE_FACTORY_H_ | 
| 6 #define V8_CODE_FACTORY_H_ | 6 #define V8_CODE_FACTORY_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 14 matching lines...) Expand all Loading... | |
| 25 | 25 | 
| 26 private: | 26 private: | 
| 27 const Handle<Code> code_; | 27 const Handle<Code> code_; | 
| 28 const CallInterfaceDescriptor descriptor_; | 28 const CallInterfaceDescriptor descriptor_; | 
| 29 }; | 29 }; | 
| 30 | 30 | 
| 31 | 31 | 
| 32 class CodeFactory final { | 32 class CodeFactory final { | 
| 33 public: | 33 public: | 
| 34 // Initial states for ICs. | 34 // Initial states for ICs. | 
| 35 static Callable LoadIC(Isolate* isolate, ContextualMode mode); | 35 static Callable LoadIC(Isolate* isolate, ContextualMode mode, | 
| 36 LanguageMode language_mode); | |
| 36 static Callable LoadICInOptimizedCode(Isolate* isolate, ContextualMode mode, | 37 static Callable LoadICInOptimizedCode(Isolate* isolate, ContextualMode mode, | 
| 37 InlineCacheState initialization_state); | 38 InlineCacheState initialization_state, | 
| 38 static Callable KeyedLoadIC(Isolate* isolate); | 39 LanguageMode language_mode = SLOPPY); | 
| 40 static Callable KeyedLoadIC(Isolate* isolate, | |
| 41 LanguageMode language_mode = SLOPPY); | |
| 39 static Callable KeyedLoadICInOptimizedCode( | 42 static Callable KeyedLoadICInOptimizedCode( | 
| 40 Isolate* isolate, InlineCacheState initialization_state); | 43 Isolate* isolate, InlineCacheState initialization_state, | 
| 44 LanguageMode language_mode); | |
| 
 
Michael Starzinger
2015/06/09 10:56:11
nit: I think the language mode should be the secon
 
conradw
2015/06/09 11:20:30
Done.
 
 | |
| 41 static Callable CallIC(Isolate* isolate, int argc, | 45 static Callable CallIC(Isolate* isolate, int argc, | 
| 42 CallICState::CallType call_type); | 46 CallICState::CallType call_type); | 
| 43 static Callable CallICInOptimizedCode(Isolate* isolate, int argc, | 47 static Callable CallICInOptimizedCode(Isolate* isolate, int argc, | 
| 44 CallICState::CallType call_type); | 48 CallICState::CallType call_type); | 
| 45 static Callable StoreIC(Isolate* isolate, LanguageMode mode); | 49 static Callable StoreIC(Isolate* isolate, LanguageMode mode); | 
| 46 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); | 50 static Callable KeyedStoreIC(Isolate* isolate, LanguageMode mode); | 
| 47 static Callable KeyedStoreICInOptimizedCode( | 51 static Callable KeyedStoreICInOptimizedCode( | 
| 48 Isolate* isolate, LanguageMode mode, | 52 Isolate* isolate, LanguageMode mode, | 
| 49 InlineCacheState initialization_state); | 53 InlineCacheState initialization_state); | 
| 50 | 54 | 
| (...skipping 25 matching lines...) Expand all Loading... | |
| 76 static Callable AllocateHeapNumber(Isolate* isolate); | 80 static Callable AllocateHeapNumber(Isolate* isolate); | 
| 77 | 81 | 
| 78 static Callable CallFunction(Isolate* isolate, int argc, | 82 static Callable CallFunction(Isolate* isolate, int argc, | 
| 79 CallFunctionFlags flags); | 83 CallFunctionFlags flags); | 
| 80 }; | 84 }; | 
| 81 | 85 | 
| 82 } // namespace internal | 86 } // namespace internal | 
| 83 } // namespace v8 | 87 } // namespace v8 | 
| 84 | 88 | 
| 85 #endif // V8_CODE_FACTORY_H_ | 89 #endif // V8_CODE_FACTORY_H_ | 
| OLD | NEW |