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

Side by Side Diff: src/debug.cc

Issue 8357010: Handlify the stub cache lookup and patching for CallIC and KeyedCallIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Do not assume functions are compiled when specializing. Created 9 years, 2 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/arm/stub-cache-arm.cc ('k') | src/ia32/macro-assembler-ia32.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 V8::FatalProcessOutOfMemory("PrintLn"); 80 V8::FatalProcessOutOfMemory("PrintLn");
81 return; 81 return;
82 } 82 }
83 s->WriteAscii(data.start()); 83 s->WriteAscii(data.start());
84 PrintF("%s\n", data.start()); 84 PrintF("%s\n", data.start());
85 } 85 }
86 86
87 87
88 static Handle<Code> ComputeCallDebugBreak(int argc, Code::Kind kind) { 88 static Handle<Code> ComputeCallDebugBreak(int argc, Code::Kind kind) {
89 Isolate* isolate = Isolate::Current(); 89 Isolate* isolate = Isolate::Current();
90 CALL_HEAP_FUNCTION( 90 return isolate->stub_cache()->ComputeCallDebugBreak(argc, kind);
91 isolate,
92 isolate->stub_cache()->ComputeCallDebugBreak(argc, kind),
93 Code);
94 } 91 }
95 92
96 93
97 static Handle<Code> ComputeCallDebugPrepareStepIn(int argc, Code::Kind kind) { 94 static Handle<Code> ComputeCallDebugPrepareStepIn(int argc, Code::Kind kind) {
98 Isolate* isolate = Isolate::Current(); 95 Isolate* isolate = Isolate::Current();
99 CALL_HEAP_FUNCTION( 96 return isolate->stub_cache()->ComputeCallDebugPrepareStepIn(argc, kind);
100 isolate,
101 isolate->stub_cache()->ComputeCallDebugPrepareStepIn(argc, kind),
102 Code);
103 } 97 }
104 98
105 99
106 static v8::Handle<v8::Context> GetDebugEventContext(Isolate* isolate) { 100 static v8::Handle<v8::Context> GetDebugEventContext(Isolate* isolate) {
107 Handle<Context> context = isolate->debug()->debugger_entry()->GetContext(); 101 Handle<Context> context = isolate->debug()->debugger_entry()->GetContext();
108 // Isolate::context() may have been NULL when "script collected" event 102 // Isolate::context() may have been NULL when "script collected" event
109 // occured. 103 // occured.
110 if (context.is_null()) return v8::Local<v8::Context>(); 104 if (context.is_null()) return v8::Local<v8::Context>();
111 Handle<Context> global_context(context->global_context()); 105 Handle<Context> global_context(context->global_context());
112 return v8::Utils::ToLocal(global_context); 106 return v8::Utils::ToLocal(global_context);
(...skipping 3367 matching lines...) Expand 10 before | Expand all | Expand 10 after
3480 { 3474 {
3481 Locker locker; 3475 Locker locker;
3482 Isolate::Current()->debugger()->CallMessageDispatchHandler(); 3476 Isolate::Current()->debugger()->CallMessageDispatchHandler();
3483 } 3477 }
3484 } 3478 }
3485 } 3479 }
3486 3480
3487 #endif // ENABLE_DEBUGGER_SUPPORT 3481 #endif // ENABLE_DEBUGGER_SUPPORT
3488 3482
3489 } } // namespace v8::internal 3483 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698