| 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 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2206 | 2206 |
| 2207 | 2207 |
| 2208 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { | 2208 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { |
| 2209 ASSERT(!in_spilled_code()); | 2209 ASSERT(!in_spilled_code()); |
| 2210 Comment cmnt(masm_, "[ DebuggerStatement"); | 2210 Comment cmnt(masm_, "[ DebuggerStatement"); |
| 2211 CodeForStatementPosition(node); | 2211 CodeForStatementPosition(node); |
| 2212 #ifdef ENABLE_DEBUGGER_SUPPORT | 2212 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 2213 // Spill everything, even constants, to the frame. | 2213 // Spill everything, even constants, to the frame. |
| 2214 frame_->SpillAll(); | 2214 frame_->SpillAll(); |
| 2215 | 2215 |
| 2216 DebugerStatementStub ces; | 2216 DebuggerStatementStub ces; |
| 2217 frame_->CallStub(&ces, 0); | 2217 frame_->CallStub(&ces, 0); |
| 2218 // Ignore the return value. | 2218 // Ignore the return value. |
| 2219 #endif | 2219 #endif |
| 2220 } | 2220 } |
| 2221 | 2221 |
| 2222 | 2222 |
| 2223 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { | 2223 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { |
| 2224 ASSERT(boilerplate->IsBoilerplate()); | 2224 ASSERT(boilerplate->IsBoilerplate()); |
| 2225 | 2225 |
| 2226 // The inevitable call will sync frame elements to memory anyway, so | 2226 // The inevitable call will sync frame elements to memory anyway, so |
| (...skipping 6959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9186 // Call the function from C++. | 9186 // Call the function from C++. |
| 9187 return FUNCTION_CAST<ModuloFunction>(buffer); | 9187 return FUNCTION_CAST<ModuloFunction>(buffer); |
| 9188 } | 9188 } |
| 9189 | 9189 |
| 9190 #endif | 9190 #endif |
| 9191 | 9191 |
| 9192 | 9192 |
| 9193 #undef __ | 9193 #undef __ |
| 9194 | 9194 |
| 9195 } } // namespace v8::internal | 9195 } } // namespace v8::internal |
| OLD | NEW |