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