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, int dst_index, | 175 static void MoveDoubleElements(FixedDoubleArray* dst, |
176 FixedDoubleArray* src, int src_index, int len) { | 176 int dst_index, |
| 177 FixedDoubleArray* src, |
| 178 int src_index, |
| 179 int len) { |
177 if (len == 0) return; | 180 if (len == 0) return; |
178 MemMove(dst->data_start() + dst_index, src->data_start() + src_index, | 181 OS::MemMove(dst->data_start() + dst_index, |
179 len * kDoubleSize); | 182 src->data_start() + src_index, |
| 183 len * kDoubleSize); |
180 } | 184 } |
181 | 185 |
182 | 186 |
183 static FixedArrayBase* LeftTrimFixedArray(Heap* heap, | 187 static FixedArrayBase* LeftTrimFixedArray(Heap* heap, |
184 FixedArrayBase* elms, | 188 FixedArrayBase* elms, |
185 int to_trim) { | 189 int to_trim) { |
186 ASSERT(heap->CanMoveObjectStart(elms)); | 190 ASSERT(heap->CanMoveObjectStart(elms)); |
187 | 191 |
188 Map* map = elms->map(); | 192 Map* map = elms->map(); |
189 int entry_size; | 193 int entry_size; |
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1716 } | 1720 } |
1717 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) | 1721 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) |
1718 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) | 1722 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) |
1719 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) | 1723 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) |
1720 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 1724 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
1721 #undef DEFINE_BUILTIN_ACCESSOR_C | 1725 #undef DEFINE_BUILTIN_ACCESSOR_C |
1722 #undef DEFINE_BUILTIN_ACCESSOR_A | 1726 #undef DEFINE_BUILTIN_ACCESSOR_A |
1723 | 1727 |
1724 | 1728 |
1725 } } // namespace v8::internal | 1729 } } // namespace v8::internal |
OLD | NEW |