Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: src/ic/ic.h

Issue 2237983004: Merged: Squashed multiple commits. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.3
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698