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

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

Issue 2622003004: [ic] Port {Load,Store}IC_Normal to TF (Closed)
Patch Set: fix nit Created 3 years, 11 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/mips/ic-mips.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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 DCHECK(nexus != NULL); 278 DCHECK(nexus != NULL);
279 DCHECK(IsLoadStub()); 279 DCHECK(IsLoadStub());
280 } 280 }
281 281
282 bool ShouldThrowReferenceError() const { 282 bool ShouldThrowReferenceError() const {
283 return kind() == Code::LOAD_GLOBAL_IC && 283 return kind() == Code::LOAD_GLOBAL_IC &&
284 LoadGlobalICState::GetTypeofMode(extra_ic_state()) == 284 LoadGlobalICState::GetTypeofMode(extra_ic_state()) ==
285 NOT_INSIDE_TYPEOF; 285 NOT_INSIDE_TYPEOF;
286 } 286 }
287 287
288 // Code generator routines.
289 static void GenerateRuntimeGetProperty(MacroAssembler* masm);
290 static void GenerateNormal(MacroAssembler* masm);
291
292 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object, 288 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Object> object,
293 Handle<Name> name); 289 Handle<Name> name);
294 290
295 static void Clear(Isolate* isolate, Code* host, LoadICNexus* nexus); 291 static void Clear(Isolate* isolate, Code* host, LoadICNexus* nexus);
296 292
297 protected: 293 protected:
298 virtual Handle<Code> slow_stub() const { 294 virtual Handle<Code> slow_stub() const {
299 return isolate()->builtins()->LoadIC_Slow(); 295 return isolate()->builtins()->LoadIC_Slow();
300 } 296 }
301 297
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 public: 363 public:
368 StoreIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL) 364 StoreIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL)
369 : IC(depth, isolate, nexus) { 365 : IC(depth, isolate, nexus) {
370 DCHECK(IsStoreStub()); 366 DCHECK(IsStoreStub());
371 } 367 }
372 368
373 LanguageMode language_mode() const { 369 LanguageMode language_mode() const {
374 return StoreICState::GetLanguageMode(extra_ic_state()); 370 return StoreICState::GetLanguageMode(extra_ic_state());
375 } 371 }
376 372
377 // Code generators for stub routines. Only called once at startup.
378 static void GenerateSlow(MacroAssembler* masm);
379 static void GenerateMiss(MacroAssembler* masm);
380 static void GenerateNormal(MacroAssembler* masm);
381
382 MUST_USE_RESULT MaybeHandle<Object> Store( 373 MUST_USE_RESULT MaybeHandle<Object> Store(
383 Handle<Object> object, Handle<Name> name, Handle<Object> value, 374 Handle<Object> object, Handle<Name> name, Handle<Object> value,
384 JSReceiver::StoreFromKeyed store_mode = 375 JSReceiver::StoreFromKeyed store_mode =
385 JSReceiver::CERTAINLY_NOT_STORE_FROM_KEYED); 376 JSReceiver::CERTAINLY_NOT_STORE_FROM_KEYED);
386 377
387 bool LookupForWrite(LookupIterator* it, Handle<Object> value, 378 bool LookupForWrite(LookupIterator* it, Handle<Object> value,
388 JSReceiver::StoreFromKeyed store_mode); 379 JSReceiver::StoreFromKeyed store_mode);
389 380
390 static void Clear(Isolate* isolate, Code* host, StoreICNexus* nexus); 381 static void Clear(Isolate* isolate, Code* host, StoreICNexus* nexus);
391 382
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 500
510 // Helper for BinaryOpIC and CompareIC. 501 // Helper for BinaryOpIC and CompareIC.
511 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 502 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
512 void PatchInlinedSmiCode(Isolate* isolate, Address address, 503 void PatchInlinedSmiCode(Isolate* isolate, Address address,
513 InlinedSmiCheck check); 504 InlinedSmiCheck check);
514 505
515 } // namespace internal 506 } // namespace internal
516 } // namespace v8 507 } // namespace v8
517 508
518 #endif // V8_IC_H_ 509 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ic/ia32/ic-ia32.cc ('k') | src/ic/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698