| 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_IC_H_ | 5 #ifndef V8_IC_H_ |
| 6 #define V8_IC_H_ | 6 #define V8_IC_H_ |
| 7 | 7 |
| 8 #include "src/ic/ic-state.h" | 8 #include "src/ic/ic-state.h" |
| 9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
| 10 #include "src/messages.h" | 10 #include "src/messages.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 321 |
| 322 static Handle<Code> initialize_stub_in_optimized_code( | 322 static Handle<Code> initialize_stub_in_optimized_code( |
| 323 Isolate* isolate, ExtraICState extra_state); | 323 Isolate* isolate, ExtraICState extra_state); |
| 324 | 324 |
| 325 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Name> name); | 325 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Name> name); |
| 326 | 326 |
| 327 static void Clear(Isolate* isolate, Code* host, LoadGlobalICNexus* nexus); | 327 static void Clear(Isolate* isolate, Code* host, LoadGlobalICNexus* nexus); |
| 328 | 328 |
| 329 protected: | 329 protected: |
| 330 Handle<Code> slow_stub() const override { | 330 Handle<Code> slow_stub() const override { |
| 331 if (LoadGlobalICState::GetTypeofMode(extra_ic_state()) == | 331 return isolate()->builtins()->LoadGlobalIC_Slow(); |
| 332 NOT_INSIDE_TYPEOF) { | |
| 333 return isolate()->builtins()->LoadGlobalIC_SlowNotInsideTypeof(); | |
| 334 } else { | |
| 335 return isolate()->builtins()->LoadGlobalIC_SlowInsideTypeof(); | |
| 336 } | |
| 337 } | 332 } |
| 338 }; | 333 }; |
| 339 | 334 |
| 340 class KeyedLoadIC : public LoadIC { | 335 class KeyedLoadIC : public LoadIC { |
| 341 public: | 336 public: |
| 342 KeyedLoadIC(FrameDepth depth, Isolate* isolate, | 337 KeyedLoadIC(FrameDepth depth, Isolate* isolate, |
| 343 KeyedLoadICNexus* nexus = NULL) | 338 KeyedLoadICNexus* nexus = NULL) |
| 344 : LoadIC(depth, isolate, nexus) { | 339 : LoadIC(depth, isolate, nexus) { |
| 345 DCHECK(nexus != NULL); | 340 DCHECK(nexus != NULL); |
| 346 } | 341 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 509 |
| 515 // Helper for BinaryOpIC and CompareIC. | 510 // Helper for BinaryOpIC and CompareIC. |
| 516 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 511 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
| 517 void PatchInlinedSmiCode(Isolate* isolate, Address address, | 512 void PatchInlinedSmiCode(Isolate* isolate, Address address, |
| 518 InlinedSmiCheck check); | 513 InlinedSmiCheck check); |
| 519 | 514 |
| 520 } // namespace internal | 515 } // namespace internal |
| 521 } // namespace v8 | 516 } // namespace v8 |
| 522 | 517 |
| 523 #endif // V8_IC_H_ | 518 #endif // V8_IC_H_ |
| OLD | NEW |