OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "api.h" | 7 #include "api.h" |
8 #include "arguments.h" | 8 #include "arguments.h" |
9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
10 #include "builtins.h" | 10 #include "builtins.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 UNREACHABLE(); | 165 UNREACHABLE(); |
166 return isolate->heap()->undefined_value(); // Make compiler happy. | 166 return isolate->heap()->undefined_value(); // Make compiler happy. |
167 } | 167 } |
168 | 168 |
169 | 169 |
170 BUILTIN(EmptyFunction) { | 170 BUILTIN(EmptyFunction) { |
171 return isolate->heap()->undefined_value(); | 171 return isolate->heap()->undefined_value(); |
172 } | 172 } |
173 | 173 |
174 | 174 |
175 static void MoveDoubleElements(FixedDoubleArray* dst, | 175 static void MoveDoubleElements(FixedDoubleArray* dst, int dst_index, |
176 int dst_index, | 176 FixedDoubleArray* src, int src_index, int len) { |
177 FixedDoubleArray* src, | |
178 int src_index, | |
179 int len) { | |
180 if (len == 0) return; | 177 if (len == 0) return; |
181 OS::MemMove(dst->data_start() + dst_index, | 178 MemMove(dst->data_start() + dst_index, src->data_start() + src_index, |
182 src->data_start() + src_index, | 179 len * kDoubleSize); |
183 len * kDoubleSize); | |
184 } | 180 } |
185 | 181 |
186 | 182 |
187 static FixedArrayBase* LeftTrimFixedArray(Heap* heap, | 183 static FixedArrayBase* LeftTrimFixedArray(Heap* heap, |
188 FixedArrayBase* elms, | 184 FixedArrayBase* elms, |
189 int to_trim) { | 185 int to_trim) { |
190 ASSERT(heap->CanMoveObjectStart(elms)); | 186 ASSERT(heap->CanMoveObjectStart(elms)); |
191 | 187 |
192 Map* map = elms->map(); | 188 Map* map = elms->map(); |
193 int entry_size; | 189 int entry_size; |
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1720 } | 1716 } |
1721 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) | 1717 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
1722 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) | 1718 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
1723 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) | 1719 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) |
1724 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 1720 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
1725 #undef DEFINE_BUILTIN_ACCESSOR_C | 1721 #undef DEFINE_BUILTIN_ACCESSOR_C |
1726 #undef DEFINE_BUILTIN_ACCESSOR_A | 1722 #undef DEFINE_BUILTIN_ACCESSOR_A |
1727 | 1723 |
1728 | 1724 |
1729 } } // namespace v8::internal | 1725 } } // namespace v8::internal |
OLD | NEW |