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

Side by Side Diff: src/ic.h

Issue 7172030: Revert "Merge arguments branch to bleeding merge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 Handle<Object> object, 276 Handle<Object> object,
277 Handle<Object> key); 277 Handle<Object> key);
278 278
279 // Code generator routines. 279 // Code generator routines.
280 static void GenerateInitialize(MacroAssembler* masm, int argc) { 280 static void GenerateInitialize(MacroAssembler* masm, int argc) {
281 GenerateMiss(masm, argc); 281 GenerateMiss(masm, argc);
282 } 282 }
283 static void GenerateMiss(MacroAssembler* masm, int argc); 283 static void GenerateMiss(MacroAssembler* masm, int argc);
284 static void GenerateMegamorphic(MacroAssembler* masm, int argc); 284 static void GenerateMegamorphic(MacroAssembler* masm, int argc);
285 static void GenerateNormal(MacroAssembler* masm, int argc); 285 static void GenerateNormal(MacroAssembler* masm, int argc);
286 static void GenerateNonStrictArguments(MacroAssembler* masm, int argc);
287 }; 286 };
288 287
289 288
290 class LoadIC: public IC { 289 class LoadIC: public IC {
291 public: 290 public:
292 explicit LoadIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { 291 explicit LoadIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) {
293 ASSERT(target()->is_load_stub()); 292 ASSERT(target()->is_load_stub());
294 } 293 }
295 294
296 MUST_USE_RESULT MaybeObject* Load(State state, 295 MUST_USE_RESULT MaybeObject* Load(State state,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 static void GenerateMiss(MacroAssembler* masm, bool force_generic); 401 static void GenerateMiss(MacroAssembler* masm, bool force_generic);
403 static void GenerateRuntimeGetProperty(MacroAssembler* masm); 402 static void GenerateRuntimeGetProperty(MacroAssembler* masm);
404 static void GenerateInitialize(MacroAssembler* masm) { 403 static void GenerateInitialize(MacroAssembler* masm) {
405 GenerateMiss(masm, false); 404 GenerateMiss(masm, false);
406 } 405 }
407 static void GeneratePreMonomorphic(MacroAssembler* masm) { 406 static void GeneratePreMonomorphic(MacroAssembler* masm) {
408 GenerateMiss(masm, false); 407 GenerateMiss(masm, false);
409 } 408 }
410 static void GenerateGeneric(MacroAssembler* masm); 409 static void GenerateGeneric(MacroAssembler* masm);
411 static void GenerateString(MacroAssembler* masm); 410 static void GenerateString(MacroAssembler* masm);
411
412 static void GenerateIndexedInterceptor(MacroAssembler* masm); 412 static void GenerateIndexedInterceptor(MacroAssembler* masm);
413 static void GenerateNonStrictArguments(MacroAssembler* masm);
414 413
415 // Bit mask to be tested against bit field for the cases when 414 // Bit mask to be tested against bit field for the cases when
416 // generic stub should go into slow case. 415 // generic stub should go into slow case.
417 // Access check is necessary explicitly since generic stub does not perform 416 // Access check is necessary explicitly since generic stub does not perform
418 // map checks. 417 // map checks.
419 static const int kSlowCaseBitFieldMask = 418 static const int kSlowCaseBitFieldMask =
420 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); 419 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor);
421 420
422 virtual MaybeObject* GetFastElementStubWithoutMapCheck( 421 virtual MaybeObject* GetFastElementStubWithoutMapCheck(
423 bool is_js_array); 422 bool is_js_array);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 Builtins::kKeyedLoadIC_Generic); 460 Builtins::kKeyedLoadIC_Generic);
462 } 461 }
463 Code* pre_monomorphic_stub() { 462 Code* pre_monomorphic_stub() {
464 return isolate()->builtins()->builtin( 463 return isolate()->builtins()->builtin(
465 Builtins::kKeyedLoadIC_PreMonomorphic); 464 Builtins::kKeyedLoadIC_PreMonomorphic);
466 } 465 }
467 Code* indexed_interceptor_stub() { 466 Code* indexed_interceptor_stub() {
468 return isolate()->builtins()->builtin( 467 return isolate()->builtins()->builtin(
469 Builtins::kKeyedLoadIC_IndexedInterceptor); 468 Builtins::kKeyedLoadIC_IndexedInterceptor);
470 } 469 }
471 Code* non_strict_arguments_stub() {
472 return isolate()->builtins()->builtin(
473 Builtins::kKeyedLoadIC_NonStrictArguments);
474 }
475 470
476 static void Clear(Address address, Code* target); 471 static void Clear(Address address, Code* target);
477 472
478 friend class IC; 473 friend class IC;
479 }; 474 };
480 475
481 476
482 class StoreIC: public IC { 477 class StoreIC: public IC {
483 public: 478 public:
484 explicit StoreIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { 479 explicit StoreIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 560
566 // Code generators for stub routines. Only called once at startup. 561 // Code generators for stub routines. Only called once at startup.
567 static void GenerateInitialize(MacroAssembler* masm) { 562 static void GenerateInitialize(MacroAssembler* masm) {
568 GenerateMiss(masm, false); 563 GenerateMiss(masm, false);
569 } 564 }
570 static void GenerateMiss(MacroAssembler* masm, bool force_generic); 565 static void GenerateMiss(MacroAssembler* masm, bool force_generic);
571 static void GenerateSlow(MacroAssembler* masm); 566 static void GenerateSlow(MacroAssembler* masm);
572 static void GenerateRuntimeSetProperty(MacroAssembler* masm, 567 static void GenerateRuntimeSetProperty(MacroAssembler* masm,
573 StrictModeFlag strict_mode); 568 StrictModeFlag strict_mode);
574 static void GenerateGeneric(MacroAssembler* masm, StrictModeFlag strict_mode); 569 static void GenerateGeneric(MacroAssembler* masm, StrictModeFlag strict_mode);
575 static void GenerateNonStrictArguments(MacroAssembler* masm);
576 570
577 virtual MaybeObject* GetFastElementStubWithoutMapCheck( 571 virtual MaybeObject* GetFastElementStubWithoutMapCheck(
578 bool is_js_array); 572 bool is_js_array);
579 573
580 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck( 574 virtual MaybeObject* GetExternalArrayStubWithoutMapCheck(
581 JSObject::ElementsKind elements_kind); 575 JSObject::ElementsKind elements_kind);
582 576
583 protected: 577 protected:
584 virtual Code::Kind kind() const { return Code::KEYED_STORE_IC; } 578 virtual Code::Kind kind() const { return Code::KEYED_STORE_IC; }
585 579
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 Builtins::kKeyedStoreIC_Generic_Strict); 618 Builtins::kKeyedStoreIC_Generic_Strict);
625 } 619 }
626 Code* generic_stub() { 620 Code* generic_stub() {
627 return isolate()->builtins()->builtin( 621 return isolate()->builtins()->builtin(
628 Builtins::kKeyedStoreIC_Generic); 622 Builtins::kKeyedStoreIC_Generic);
629 } 623 }
630 Code* generic_stub_strict() { 624 Code* generic_stub_strict() {
631 return isolate()->builtins()->builtin( 625 return isolate()->builtins()->builtin(
632 Builtins::kKeyedStoreIC_Generic_Strict); 626 Builtins::kKeyedStoreIC_Generic_Strict);
633 } 627 }
634 Code* non_strict_arguments_stub() {
635 return isolate()->builtins()->builtin(
636 Builtins::kKeyedStoreIC_NonStrictArguments);
637 }
638 628
639 static void Clear(Address address, Code* target); 629 static void Clear(Address address, Code* target);
640 630
641 friend class IC; 631 friend class IC;
642 }; 632 };
643 633
644 634
645 class UnaryOpIC: public IC { 635 class UnaryOpIC: public IC {
646 public: 636 public:
647 // sorted: increasingly more unspecific (ignoring UNINITIALIZED) 637 // sorted: increasingly more unspecific (ignoring UNINITIALIZED)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 724
735 Token::Value op_; 725 Token::Value op_;
736 }; 726 };
737 727
738 // Helper for BinaryOpIC and CompareIC. 728 // Helper for BinaryOpIC and CompareIC.
739 void PatchInlinedSmiCode(Address address); 729 void PatchInlinedSmiCode(Address address);
740 730
741 } } // namespace v8::internal 731 } } // namespace v8::internal
742 732
743 #endif // V8_IC_H_ 733 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698