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 |
130 #ifdef DEBUG | 132 #ifdef DEBUG |
131 if (strlen(FLAG_stop_at) > 0 && | 133 if (strlen(FLAG_stop_at) > 0 && |
132 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 134 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
133 __ stop("stop_at"); | 135 __ stop("stop_at"); |
134 } | 136 } |
135 #endif | 137 #endif |
136 | 138 |
137 // r1: Callee's JS function. | 139 // r1: Callee's JS function. |
138 // cp: Callee's context. | 140 // cp: Callee's context. |
139 // fp: Caller's frame pointer. | 141 // fp: Caller's frame pointer. |
(...skipping 5261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5401 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5403 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
5402 __ ldr(result, FieldMemOperand(scratch, | 5404 __ ldr(result, FieldMemOperand(scratch, |
5403 FixedArray::kHeaderSize - kPointerSize)); | 5405 FixedArray::kHeaderSize - kPointerSize)); |
5404 __ bind(&done); | 5406 __ bind(&done); |
5405 } | 5407 } |
5406 | 5408 |
5407 | 5409 |
5408 #undef __ | 5410 #undef __ |
5409 | 5411 |
5410 } } // namespace v8::internal | 5412 } } // namespace v8::internal |
OLD | NEW |