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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 size_t length = builder.position(); | 128 size_t length = builder.position(); |
129 Vector<char> copy = Vector<char>::New(length + 1); | 129 Vector<char> copy = Vector<char>::New(length + 1); |
130 memcpy(copy.start(), builder.Finalize(), copy.length()); | 130 memcpy(copy.start(), builder.Finalize(), copy.length()); |
131 masm()->RecordComment(copy.start()); | 131 masm()->RecordComment(copy.start()); |
132 } | 132 } |
133 | 133 |
134 | 134 |
135 bool LCodeGen::GeneratePrologue() { | 135 bool LCodeGen::GeneratePrologue() { |
136 ASSERT(is_generating()); | 136 ASSERT(is_generating()); |
137 | 137 |
| 138 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 139 |
138 #ifdef DEBUG | 140 #ifdef DEBUG |
139 if (strlen(FLAG_stop_at) > 0 && | 141 if (strlen(FLAG_stop_at) > 0 && |
140 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 142 info_->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
141 __ int3(); | 143 __ int3(); |
142 } | 144 } |
143 #endif | 145 #endif |
144 | 146 |
145 // Strict mode functions and builtins need to replace the receiver | 147 // Strict mode functions and builtins need to replace the receiver |
146 // with undefined when called as functions (without an explicit | 148 // with undefined when called as functions (without an explicit |
147 // receiver object). ecx is zero for method calls and non-zero for | 149 // receiver object). ecx is zero for method calls and non-zero for |
(...skipping 5184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5332 FixedArray::kHeaderSize - kPointerSize)); | 5334 FixedArray::kHeaderSize - kPointerSize)); |
5333 __ bind(&done); | 5335 __ bind(&done); |
5334 } | 5336 } |
5335 | 5337 |
5336 | 5338 |
5337 #undef __ | 5339 #undef __ |
5338 | 5340 |
5339 } } // namespace v8::internal | 5341 } } // namespace v8::internal |
5340 | 5342 |
5341 #endif // V8_TARGET_ARCH_IA32 | 5343 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |