| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 size_t length = builder.position(); | 120 size_t length = builder.position(); |
| 121 Vector<char> copy = Vector<char>::New(length + 1); | 121 Vector<char> copy = Vector<char>::New(length + 1); |
| 122 memcpy(copy.start(), builder.Finalize(), copy.length()); | 122 memcpy(copy.start(), builder.Finalize(), copy.length()); |
| 123 masm()->RecordComment(copy.start()); | 123 masm()->RecordComment(copy.start()); |
| 124 } | 124 } |
| 125 | 125 |
| 126 | 126 |
| 127 bool LCodeGen::GeneratePrologue() { | 127 bool LCodeGen::GeneratePrologue() { |
| 128 ASSERT(is_generating()); | 128 ASSERT(is_generating()); |
| 129 | 129 |
| 130 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | |
| 131 | |
| 132 #ifdef DEBUG | 130 #ifdef DEBUG |
| 133 if (strlen(FLAG_stop_at) > 0 && | 131 if (strlen(FLAG_stop_at) > 0 && |
| 134 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 132 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
| 135 __ stop("stop_at"); | 133 __ stop("stop_at"); |
| 136 } | 134 } |
| 137 #endif | 135 #endif |
| 138 | 136 |
| 139 // r1: Callee's JS function. | 137 // r1: Callee's JS function. |
| 140 // cp: Callee's context. | 138 // cp: Callee's context. |
| 141 // fp: Caller's frame pointer. | 139 // fp: Caller's frame pointer. |
| (...skipping 5261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5403 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5401 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 5404 __ ldr(result, FieldMemOperand(scratch, | 5402 __ ldr(result, FieldMemOperand(scratch, |
| 5405 FixedArray::kHeaderSize - kPointerSize)); | 5403 FixedArray::kHeaderSize - kPointerSize)); |
| 5406 __ bind(&done); | 5404 __ bind(&done); |
| 5407 } | 5405 } |
| 5408 | 5406 |
| 5409 | 5407 |
| 5410 #undef __ | 5408 #undef __ |
| 5411 | 5409 |
| 5412 } } // namespace v8::internal | 5410 } } // namespace v8::internal |
| OLD | NEW |