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

Side by Side Diff: src/code-stubs.cc

Issue 12521011: Compile FastCloneShallowArrayStub using Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make this thing work with snapshots. Created 7 years, 9 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 } else { 607 } else {
608 UNREACHABLE(); 608 UNREACHABLE();
609 } 609 }
610 } 610 }
611 masm->bind(&fail); 611 masm->bind(&fail);
612 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_); 612 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_);
613 } 613 }
614 614
615 615
616 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { 616 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) {
617 int i = 0; 617 for (int i = 0; i <= kMaxExtraExpressionStackCount; ++i) {
618 for (; i <= StubFailureTrampolineStub::kMaxExtraExpressionStackCount; ++i) { 618 Handle<Code> code = StubFailureTrampolineStub(i).GetCode(isolate);
619 StubFailureTrampolineStub(i).GetCode(isolate); 619 code->set_is_pregenerated(true);
620 } 620 }
621 } 621 }
622 622
623 623
624 FunctionEntryHook ProfileEntryHookStub::entry_hook_ = NULL; 624 FunctionEntryHook ProfileEntryHookStub::entry_hook_ = NULL;
625 625
626 626
627 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, 627 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function,
628 intptr_t stack_pointer) { 628 intptr_t stack_pointer) {
629 if (entry_hook_ != NULL) 629 if (entry_hook_ != NULL)
630 entry_hook_(function, stack_pointer); 630 entry_hook_(function, stack_pointer);
631 } 631 }
632 632
633 633
634 bool ProfileEntryHookStub::SetFunctionEntryHook(FunctionEntryHook entry_hook) { 634 bool ProfileEntryHookStub::SetFunctionEntryHook(FunctionEntryHook entry_hook) {
635 // We don't allow setting a new entry hook over one that's 635 // We don't allow setting a new entry hook over one that's
636 // already active, as the hooks won't stack. 636 // already active, as the hooks won't stack.
637 if (entry_hook != 0 && entry_hook_ != 0) 637 if (entry_hook != 0 && entry_hook_ != 0)
638 return false; 638 return false;
639 639
640 entry_hook_ = entry_hook; 640 entry_hook_ = entry_hook;
641 return true; 641 return true;
642 } 642 }
643 643
644 644
645 } } // namespace v8::internal 645 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698