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

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

Issue 1358393004: Remove crash-hunting instrumentation that has served its purpose. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove unused variable Created 5 years, 3 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/ic/ia32/ic-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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 DCHECK(nexus != NULL); 317 DCHECK(nexus != NULL);
318 DCHECK(IsLoadStub()); 318 DCHECK(IsLoadStub());
319 } 319 }
320 320
321 bool ShouldThrowReferenceError(Handle<Object> receiver) { 321 bool ShouldThrowReferenceError(Handle<Object> receiver) {
322 return receiver->IsGlobalObject() && typeof_mode() == NOT_INSIDE_TYPEOF; 322 return receiver->IsGlobalObject() && typeof_mode() == NOT_INSIDE_TYPEOF;
323 } 323 }
324 324
325 // Code generator routines. 325 // Code generator routines.
326 326
327 // TODO(jkummerow): Remove the stress parameter and these stress constants 327 static void GenerateInitialize(MacroAssembler* masm) { GenerateMiss(masm); }
328 // when a crash bug is fixed. 328 static void GenerateMiss(MacroAssembler* masm);
329 static const int kStressNone = 0;
330 static const int kStressInit = 1;
331 static const int kStressDispatcher = 2;
332 static const int kStressBuiltin = 3;
333 static void GenerateInitialize(MacroAssembler* masm) {
334 GenerateMiss(masm, kStressInit);
335 }
336 static void GenerateMiss(MacroAssembler* masm, int stress = kStressNone);
337 static void GenerateRuntimeGetProperty(MacroAssembler* masm, 329 static void GenerateRuntimeGetProperty(MacroAssembler* masm,
338 LanguageMode language_mode); 330 LanguageMode language_mode);
339 static void GenerateNormal(MacroAssembler* masm, LanguageMode language_mode); 331 static void GenerateNormal(MacroAssembler* masm, LanguageMode language_mode);
340 332
341 static Handle<Code> initialize_stub(Isolate* isolate, 333 static Handle<Code> initialize_stub(Isolate* isolate,
342 ExtraICState extra_state); 334 ExtraICState extra_state);
343 static Handle<Code> initialize_stub_in_optimized_code( 335 static Handle<Code> initialize_stub_in_optimized_code(
344 Isolate* isolate, ExtraICState extra_state, State initialization_state); 336 Isolate* isolate, ExtraICState extra_state, State initialization_state);
345 337
346 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object, 338 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object,
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 682
691 683
692 // Helper for BinaryOpIC and CompareIC. 684 // Helper for BinaryOpIC and CompareIC.
693 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 685 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
694 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); 686 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check);
695 687
696 } 688 }
697 } // namespace v8::internal 689 } // namespace v8::internal
698 690
699 #endif // V8_IC_H_ 691 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ic/ia32/ic-ia32.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698