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

Side by Side Diff: runtime/lib/array.cc

Issue 509153003: New bigint implementation in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/bootstrap_natives.h" 6 #include "vm/bootstrap_natives.h"
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/bigint_operations.h"
9 #include "vm/exceptions.h" 8 #include "vm/exceptions.h"
10 #include "vm/native_entry.h" 9 #include "vm/native_entry.h"
11 #include "vm/object.h" 10 #include "vm/object.h"
12 11
13 namespace dart { 12 namespace dart {
14 13
15 DEFINE_NATIVE_ENTRY(List_allocate, 2) { 14 DEFINE_NATIVE_ENTRY(List_allocate, 2) {
16 // Implemented in FlowGraphBuilder::VisitNativeBody. 15 // Implemented in FlowGraphBuilder::VisitNativeBody.
17 UNREACHABLE(); 16 UNREACHABLE();
18 return Object::null(); 17 return Object::null();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 Object& temp = Object::Handle(); 86 Object& temp = Object::Handle();
88 for (intptr_t i = 0; i < length; i++) { 87 for (intptr_t i = 0; i < length; i++) {
89 temp = from_array.At(i + offset); 88 temp = from_array.At(i + offset);
90 result.SetAt(i, temp); 89 result.SetAt(i, temp);
91 } 90 }
92 result.MakeImmutable(); 91 result.MakeImmutable();
93 return result.raw(); 92 return result.raw();
94 } 93 }
95 94
96 } // namespace dart 95 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698