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

Side by Side Diff: src/codegen-arm.cc

Issue 77035: Add ENABLE_DEBUGGER_SUPPORT macro.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 } 2328 }
2329 2329
2330 2330
2331 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { 2331 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) {
2332 #ifdef DEBUG 2332 #ifdef DEBUG
2333 int original_height = frame_->height(); 2333 int original_height = frame_->height();
2334 #endif 2334 #endif
2335 VirtualFrame::SpilledScope spilled_scope(this); 2335 VirtualFrame::SpilledScope spilled_scope(this);
2336 Comment cmnt(masm_, "[ DebuggerStatament"); 2336 Comment cmnt(masm_, "[ DebuggerStatament");
2337 CodeForStatementPosition(node); 2337 CodeForStatementPosition(node);
2338 #ifdef ENABLE_DEBUGGER_SUPPORT
2338 frame_->CallRuntime(Runtime::kDebugBreak, 0); 2339 frame_->CallRuntime(Runtime::kDebugBreak, 0);
2340 #endif
2339 // Ignore the return value. 2341 // Ignore the return value.
2340 ASSERT(frame_->height() == original_height); 2342 ASSERT(frame_->height() == original_height);
2341 } 2343 }
2342 2344
2343 2345
2344 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { 2346 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) {
2345 VirtualFrame::SpilledScope spilled_scope(this); 2347 VirtualFrame::SpilledScope spilled_scope(this);
2346 ASSERT(boilerplate->IsBoilerplate()); 2348 ASSERT(boilerplate->IsBoilerplate());
2347 2349
2348 // Push the boilerplate on the stack. 2350 // Push the boilerplate on the stack.
(...skipping 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after
5136 __ mov(r2, Operand(0)); 5138 __ mov(r2, Operand(0));
5137 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); 5139 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION);
5138 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)), 5140 __ Jump(Handle<Code>(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline)),
5139 RelocInfo::CODE_TARGET); 5141 RelocInfo::CODE_TARGET);
5140 } 5142 }
5141 5143
5142 5144
5143 #undef __ 5145 #undef __
5144 5146
5145 } } // namespace v8::internal 5147 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/codegen-ia32.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698