Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: src/builtins.cc

Issue 306473004: Reland 21502 - "Move OS::MemCopy and OS::MemMove out of platform to utils" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/atomicops_internals_x86_gcc.cc ('k') | src/conversions-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/atomicops_internals_x86_gcc.cc ('k') | src/conversions-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698