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

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

Issue 1406113007: Merge GlobalObject with JSGlobalObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/ic/ia32/handler-compiler-ia32.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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 return LoadICState::GetLanguageMode(extra_ic_state()); 310 return LoadICState::GetLanguageMode(extra_ic_state());
311 } 311 }
312 312
313 LoadIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL) 313 LoadIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL)
314 : IC(depth, isolate, nexus) { 314 : IC(depth, isolate, nexus) {
315 DCHECK(nexus != NULL); 315 DCHECK(nexus != NULL);
316 DCHECK(IsLoadStub()); 316 DCHECK(IsLoadStub());
317 } 317 }
318 318
319 bool ShouldThrowReferenceError(Handle<Object> receiver) { 319 bool ShouldThrowReferenceError(Handle<Object> receiver) {
320 return receiver->IsGlobalObject() && typeof_mode() == NOT_INSIDE_TYPEOF; 320 return receiver->IsJSGlobalObject() && typeof_mode() == NOT_INSIDE_TYPEOF;
321 } 321 }
322 322
323 // Code generator routines. 323 // Code generator routines.
324 324
325 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); } 325 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); }
326 static void GenerateMiss(MacroAssembler* masm); 326 static void GenerateMiss(MacroAssembler* masm);
327 static void GenerateRuntimeGetProperty(MacroAssembler* masm, 327 static void GenerateRuntimeGetProperty(MacroAssembler* masm,
328 LanguageMode language_mode); 328 LanguageMode language_mode);
329 static void GenerateNormal(MacroAssembler* masm, LanguageMode language_mode); 329 static void GenerateNormal(MacroAssembler* masm, LanguageMode language_mode);
330 330
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 680
681 681
682 // Helper for BinaryOpIC and CompareIC. 682 // Helper for BinaryOpIC and CompareIC.
683 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 683 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
684 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 684 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
685 685
686 } // namespace internal 686 } // namespace internal
687 } // namespace v8 687 } // namespace v8
688 688
689 #endif // V8_IC_H_ 689 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698