| 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 #include "src/objects-inl.h" | 9 #include "src/objects-inl.h" |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 | 117 |
| 118 // static | 118 // static |
| 119 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate, | 119 Callable CodeFactory::StoreICInOptimizedCode(Isolate* isolate, |
| 120 LanguageMode language_mode) { | 120 LanguageMode language_mode) { |
| 121 return Callable(language_mode == STRICT ? isolate->builtins()->StoreICStrict() | 121 return Callable(language_mode == STRICT ? isolate->builtins()->StoreICStrict() |
| 122 : isolate->builtins()->StoreIC(), | 122 : isolate->builtins()->StoreIC(), |
| 123 StoreWithVectorDescriptor(isolate)); | 123 StoreWithVectorDescriptor(isolate)); |
| 124 } | 124 } |
| 125 | 125 |
| 126 // static |
| 127 Callable CodeFactory::StoreIC_Uninitialized(Isolate* isolate, |
| 128 LanguageMode language_mode) { |
| 129 return Callable(language_mode == STRICT |
| 130 ? isolate->builtins()->StoreICStrict_Uninitialized() |
| 131 : isolate->builtins()->StoreIC_Uninitialized(), |
| 132 StoreWithVectorDescriptor(isolate)); |
| 133 } |
| 134 |
| 126 Callable CodeFactory::StoreOwnIC(Isolate* isolate) { | 135 Callable CodeFactory::StoreOwnIC(Isolate* isolate) { |
| 127 // TODO(ishell): Currently we use StoreOwnIC only for storing properties that | 136 // TODO(ishell): Currently we use StoreOwnIC only for storing properties that |
| 128 // already exist in the boilerplate therefore we can use StoreIC. | 137 // already exist in the boilerplate therefore we can use StoreIC. |
| 129 return Callable(isolate->builtins()->StoreICStrictTrampoline(), | 138 return Callable(isolate->builtins()->StoreICStrictTrampoline(), |
| 130 StoreDescriptor(isolate)); | 139 StoreDescriptor(isolate)); |
| 131 } | 140 } |
| 132 | 141 |
| 133 Callable CodeFactory::StoreOwnICInOptimizedCode(Isolate* isolate) { | 142 Callable CodeFactory::StoreOwnICInOptimizedCode(Isolate* isolate) { |
| 134 // TODO(ishell): Currently we use StoreOwnIC only for storing properties that | 143 // TODO(ishell): Currently we use StoreOwnIC only for storing properties that |
| 135 // already exist in the boilerplate therefore we can use StoreIC. | 144 // already exist in the boilerplate therefore we can use StoreIC. |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 } | 509 } |
| 501 | 510 |
| 502 // static | 511 // static |
| 503 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 512 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
| 504 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 513 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
| 505 BuiltinDescriptor(isolate)); | 514 BuiltinDescriptor(isolate)); |
| 506 } | 515 } |
| 507 | 516 |
| 508 } // namespace internal | 517 } // namespace internal |
| 509 } // namespace v8 | 518 } // namespace v8 |
| OLD | NEW |