| 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 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2280 | 2280 |
| 2281 | 2281 |
| 2282 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { | 2282 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { |
| 2283 #ifdef DEBUG | 2283 #ifdef DEBUG |
| 2284 int original_height = frame_->height(); | 2284 int original_height = frame_->height(); |
| 2285 #endif | 2285 #endif |
| 2286 VirtualFrame::SpilledScope spilled_scope; | 2286 VirtualFrame::SpilledScope spilled_scope; |
| 2287 Comment cmnt(masm_, "[ DebuggerStatament"); | 2287 Comment cmnt(masm_, "[ DebuggerStatament"); |
| 2288 CodeForStatementPosition(node); | 2288 CodeForStatementPosition(node); |
| 2289 #ifdef ENABLE_DEBUGGER_SUPPORT | 2289 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 2290 DebugerStatementStub ces; | 2290 DebuggerStatementStub ces; |
| 2291 frame_->CallStub(&ces, 0); | 2291 frame_->CallStub(&ces, 0); |
| 2292 #endif | 2292 #endif |
| 2293 // Ignore the return value. | 2293 // Ignore the return value. |
| 2294 ASSERT(frame_->height() == original_height); | 2294 ASSERT(frame_->height() == original_height); |
| 2295 } | 2295 } |
| 2296 | 2296 |
| 2297 | 2297 |
| 2298 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { | 2298 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { |
| 2299 VirtualFrame::SpilledScope spilled_scope; | 2299 VirtualFrame::SpilledScope spilled_scope; |
| 2300 ASSERT(boilerplate->IsBoilerplate()); | 2300 ASSERT(boilerplate->IsBoilerplate()); |
| (...skipping 4612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6913 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) | 6913 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) |
| 6914 // tagged as a small integer. | 6914 // tagged as a small integer. |
| 6915 __ bind(&runtime); | 6915 __ bind(&runtime); |
| 6916 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); | 6916 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); |
| 6917 } | 6917 } |
| 6918 | 6918 |
| 6919 | 6919 |
| 6920 #undef __ | 6920 #undef __ |
| 6921 | 6921 |
| 6922 } } // namespace v8::internal | 6922 } } // namespace v8::internal |
| OLD | NEW |