| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 comment_ = ""; | 44 comment_ = ""; |
| 45 #endif | 45 #endif |
| 46 } | 46 } |
| 47 | 47 |
| 48 | 48 |
| 49 void CodeGenerator::ProcessDeferred() { | 49 void CodeGenerator::ProcessDeferred() { |
| 50 while (!deferred_.is_empty()) { | 50 while (!deferred_.is_empty()) { |
| 51 DeferredCode* code = deferred_.RemoveLast(); | 51 DeferredCode* code = deferred_.RemoveLast(); |
| 52 MacroAssembler* masm = code->masm(); | 52 MacroAssembler* masm = code->masm(); |
| 53 // Record position of deferred code stub. | 53 // Record position of deferred code stub. |
| 54 if (code->statement_position() != kNoPosition) { | 54 if (code->statement_position() != RelocInfo::kNoPosition) { |
| 55 masm->RecordStatementPosition(code->statement_position()); | 55 masm->RecordStatementPosition(code->statement_position()); |
| 56 } | 56 } |
| 57 if (code->position() != kNoPosition) { | 57 if (code->position() != RelocInfo::kNoPosition) { |
| 58 masm->RecordPosition(code->position()); | 58 masm->RecordPosition(code->position()); |
| 59 } | 59 } |
| 60 // Bind labels and generate the code. | 60 // Bind labels and generate the code. |
| 61 masm->bind(code->enter()); | 61 masm->bind(code->enter()); |
| 62 Comment cmnt(masm, code->comment()); | 62 Comment cmnt(masm, code->comment()); |
| 63 code->Generate(); | 63 code->Generate(); |
| 64 if (code->exit()->is_bound()) { | 64 if (code->exit()->is_bound()) { |
| 65 masm->jmp(code->exit()); // platform independent? | 65 masm->jmp(code->exit()); // platform independent? |
| 66 } | 66 } |
| 67 } | 67 } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 return Runtime::FunctionForId(id_)->stub_name; | 255 return Runtime::FunctionForId(id_)->stub_name; |
| 256 } | 256 } |
| 257 | 257 |
| 258 | 258 |
| 259 void RuntimeStub::Generate(MacroAssembler* masm) { | 259 void RuntimeStub::Generate(MacroAssembler* masm) { |
| 260 masm->TailCallRuntime(ExternalReference(id_), num_arguments_); | 260 masm->TailCallRuntime(ExternalReference(id_), num_arguments_); |
| 261 } | 261 } |
| 262 | 262 |
| 263 | 263 |
| 264 } } // namespace v8::internal | 264 } } // namespace v8::internal |
| OLD | NEW |