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

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

Issue 23587019: thread isolate for EntryHookTrampoline (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | no next file » | 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 // 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 724
725 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { 725 void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) {
726 StubFailureTrampolineStub stub1(NOT_JS_FUNCTION_STUB_MODE); 726 StubFailureTrampolineStub stub1(NOT_JS_FUNCTION_STUB_MODE);
727 StubFailureTrampolineStub stub2(JS_FUNCTION_STUB_MODE); 727 StubFailureTrampolineStub stub2(JS_FUNCTION_STUB_MODE);
728 stub1.GetCode(isolate)->set_is_pregenerated(true); 728 stub1.GetCode(isolate)->set_is_pregenerated(true);
729 stub2.GetCode(isolate)->set_is_pregenerated(true); 729 stub2.GetCode(isolate)->set_is_pregenerated(true);
730 } 730 }
731 731
732 732
733 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function, 733 void ProfileEntryHookStub::EntryHookTrampoline(intptr_t function,
734 intptr_t stack_pointer) { 734 intptr_t stack_pointer,
735 FunctionEntryHook entry_hook = Isolate::Current()->function_entry_hook(); 735 Isolate* isolate) {
736 FunctionEntryHook entry_hook = isolate->function_entry_hook();
736 ASSERT(entry_hook != NULL); 737 ASSERT(entry_hook != NULL);
737 entry_hook(function, stack_pointer); 738 entry_hook(function, stack_pointer);
738 } 739 }
739 740
740 741
741 static void InstallDescriptor(Isolate* isolate, HydrogenCodeStub* stub) { 742 static void InstallDescriptor(Isolate* isolate, HydrogenCodeStub* stub) {
742 int major_key = stub->MajorKey(); 743 int major_key = stub->MajorKey();
743 CodeStubInterfaceDescriptor* descriptor = 744 CodeStubInterfaceDescriptor* descriptor =
744 isolate->code_stub_interface_descriptor(major_key); 745 isolate->code_stub_interface_descriptor(major_key);
745 if (!descriptor->initialized()) { 746 if (!descriptor->initialized()) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 InstallDescriptor(isolate, &stub3); 795 InstallDescriptor(isolate, &stub3);
795 } 796 }
796 797
797 InternalArrayConstructorStub::InternalArrayConstructorStub( 798 InternalArrayConstructorStub::InternalArrayConstructorStub(
798 Isolate* isolate) { 799 Isolate* isolate) {
799 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 800 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
800 } 801 }
801 802
802 803
803 } } // namespace v8::internal 804 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698