| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2211 | 2211 |
| 2212 | 2212 |
| 2213 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { | 2213 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { |
| 2214 ASSERT(!in_spilled_code()); | 2214 ASSERT(!in_spilled_code()); |
| 2215 Comment cmnt(masm_, "[ DebuggerStatement"); | 2215 Comment cmnt(masm_, "[ DebuggerStatement"); |
| 2216 CodeForStatementPosition(node); | 2216 CodeForStatementPosition(node); |
| 2217 #ifdef ENABLE_DEBUGGER_SUPPORT | 2217 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 2218 // Spill everything, even constants, to the frame. | 2218 // Spill everything, even constants, to the frame. |
| 2219 frame_->SpillAll(); | 2219 frame_->SpillAll(); |
| 2220 | 2220 |
| 2221 DebuggerStatementStub ces; | 2221 frame_->DebugBreak(); |
| 2222 frame_->CallStub(&ces, 0); | |
| 2223 // Ignore the return value. | 2222 // Ignore the return value. |
| 2224 #endif | 2223 #endif |
| 2225 } | 2224 } |
| 2226 | 2225 |
| 2227 | 2226 |
| 2228 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { | 2227 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { |
| 2229 ASSERT(boilerplate->IsBoilerplate()); | 2228 ASSERT(boilerplate->IsBoilerplate()); |
| 2230 | 2229 |
| 2231 // The inevitable call will sync frame elements to memory anyway, so | 2230 // The inevitable call will sync frame elements to memory anyway, so |
| 2232 // we do it eagerly to allow us to push the arguments directly into | 2231 // we do it eagerly to allow us to push the arguments directly into |
| (...skipping 6958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9191 // Call the function from C++. | 9190 // Call the function from C++. |
| 9192 return FUNCTION_CAST<ModuloFunction>(buffer); | 9191 return FUNCTION_CAST<ModuloFunction>(buffer); |
| 9193 } | 9192 } |
| 9194 | 9193 |
| 9195 #endif | 9194 #endif |
| 9196 | 9195 |
| 9197 | 9196 |
| 9198 #undef __ | 9197 #undef __ |
| 9199 | 9198 |
| 9200 } } // namespace v8::internal | 9199 } } // namespace v8::internal |
| OLD | NEW |