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

Side by Side Diff: src/codegen-ia32.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 3161 matching lines...) Expand 10 before | Expand all | Expand 10 after
3172 // Done. 3172 // Done.
3173 exit.Bind(); 3173 exit.Bind();
3174 } 3174 }
3175 } 3175 }
3176 3176
3177 3177
3178 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { 3178 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) {
3179 ASSERT(!in_spilled_code()); 3179 ASSERT(!in_spilled_code());
3180 Comment cmnt(masm_, "[ DebuggerStatement"); 3180 Comment cmnt(masm_, "[ DebuggerStatement");
3181 CodeForStatementPosition(node); 3181 CodeForStatementPosition(node);
3182 #ifdef ENABLE_DEBUGGER_SUPPORT
3182 // Spill everything, even constants, to the frame. 3183 // Spill everything, even constants, to the frame.
3183 frame_->SpillAll(); 3184 frame_->SpillAll();
3184 frame_->CallRuntime(Runtime::kDebugBreak, 0); 3185 frame_->CallRuntime(Runtime::kDebugBreak, 0);
3185 // Ignore the return value. 3186 // Ignore the return value.
3187 #endif
3186 } 3188 }
3187 3189
3188 3190
3189 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { 3191 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) {
3190 ASSERT(boilerplate->IsBoilerplate()); 3192 ASSERT(boilerplate->IsBoilerplate());
3191 3193
3192 // Push the boilerplate on the stack. 3194 // Push the boilerplate on the stack.
3193 frame_->Push(boilerplate); 3195 frame_->Push(boilerplate);
3194 3196
3195 // Create a new closure. 3197 // Create a new closure.
(...skipping 3916 matching lines...) Expand 10 before | Expand all | Expand 10 after
7112 7114
7113 // Slow-case: Go through the JavaScript implementation. 7115 // Slow-case: Go through the JavaScript implementation.
7114 __ bind(&slow); 7116 __ bind(&slow);
7115 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); 7117 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION);
7116 } 7118 }
7117 7119
7118 7120
7119 #undef __ 7121 #undef __
7120 7122
7121 } } // namespace v8::internal 7123 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen-arm.cc ('k') | src/compiler.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698