| 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 3888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3899 | 3899 |
| 3900 | 3900 |
| 3901 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { | 3901 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { |
| 3902 ASSERT(!in_spilled_code()); | 3902 ASSERT(!in_spilled_code()); |
| 3903 Comment cmnt(masm_, "[ DebuggerStatement"); | 3903 Comment cmnt(masm_, "[ DebuggerStatement"); |
| 3904 CodeForStatementPosition(node); | 3904 CodeForStatementPosition(node); |
| 3905 #ifdef ENABLE_DEBUGGER_SUPPORT | 3905 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 3906 // Spill everything, even constants, to the frame. | 3906 // Spill everything, even constants, to the frame. |
| 3907 frame_->SpillAll(); | 3907 frame_->SpillAll(); |
| 3908 | 3908 |
| 3909 DebuggerStatementStub ces; | 3909 frame_->DebugBreak(); |
| 3910 frame_->CallStub(&ces, 0); | |
| 3911 // Ignore the return value. | 3910 // Ignore the return value. |
| 3912 #endif | 3911 #endif |
| 3913 } | 3912 } |
| 3914 | 3913 |
| 3915 | 3914 |
| 3916 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { | 3915 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { |
| 3917 ASSERT(boilerplate->IsBoilerplate()); | 3916 ASSERT(boilerplate->IsBoilerplate()); |
| 3918 | 3917 |
| 3919 // The inevitable call will sync frame elements to memory anyway, so | 3918 // The inevitable call will sync frame elements to memory anyway, so |
| 3920 // we do it eagerly to allow us to push the arguments directly into | 3919 // we do it eagerly to allow us to push the arguments directly into |
| (...skipping 6174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10095 | 10094 |
| 10096 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) | 10095 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) |
| 10097 // tagged as a small integer. | 10096 // tagged as a small integer. |
| 10098 __ bind(&runtime); | 10097 __ bind(&runtime); |
| 10099 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); | 10098 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); |
| 10100 } | 10099 } |
| 10101 | 10100 |
| 10102 #undef __ | 10101 #undef __ |
| 10103 | 10102 |
| 10104 } } // namespace v8::internal | 10103 } } // namespace v8::internal |
| OLD | NEW |