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

Side by Side Diff: runtime/vm/snapshot.cc

Issue 1430993003: Add test precompiling dart2js. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: status file Created 5 years, 1 month 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
« no previous file with comments | « runtime/vm/snapshot.h ('k') | tests/standalone/precompilation_dart2js_test.dart » ('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 (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 "vm/snapshot.h" 5 #include "vm/snapshot.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 RawGrowableObjectArray* SnapshotReader::NewGrowableObjectArray() { 1014 RawGrowableObjectArray* SnapshotReader::NewGrowableObjectArray() {
1015 ALLOC_NEW_OBJECT(GrowableObjectArray); 1015 ALLOC_NEW_OBJECT(GrowableObjectArray);
1016 } 1016 }
1017 1017
1018 1018
1019 RawWeakProperty* SnapshotReader::NewWeakProperty() { 1019 RawWeakProperty* SnapshotReader::NewWeakProperty() {
1020 ALLOC_NEW_OBJECT(WeakProperty); 1020 ALLOC_NEW_OBJECT(WeakProperty);
1021 } 1021 }
1022 1022
1023 1023
1024 RawJSRegExp* SnapshotReader::NewJSRegExp() {
1025 ALLOC_NEW_OBJECT(JSRegExp);
1026 }
1027
1028
1024 RawFloat32x4* SnapshotReader::NewFloat32x4(float v0, float v1, float v2, 1029 RawFloat32x4* SnapshotReader::NewFloat32x4(float v0, float v1, float v2,
1025 float v3) { 1030 float v3) {
1026 ASSERT(kind_ == Snapshot::kFull); 1031 ASSERT(kind_ == Snapshot::kFull);
1027 ASSERT_NO_SAFEPOINT_SCOPE(); 1032 ASSERT_NO_SAFEPOINT_SCOPE();
1028 RawFloat32x4* obj = reinterpret_cast<RawFloat32x4*>( 1033 RawFloat32x4* obj = reinterpret_cast<RawFloat32x4*>(
1029 AllocateUninitialized(kFloat32x4Cid, Float32x4::InstanceSize())); 1034 AllocateUninitialized(kFloat32x4Cid, Float32x4::InstanceSize()));
1030 obj->ptr()->value_[0] = v0; 1035 obj->ptr()->value_[0] = v0;
1031 obj->ptr()->value_[1] = v1; 1036 obj->ptr()->value_[1] = v1;
1032 obj->ptr()->value_[2] = v2; 1037 obj->ptr()->value_[2] = v2;
1033 obj->ptr()->value_[3] = v3; 1038 obj->ptr()->value_[3] = v3;
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
2579 if (setjmp(*jump.Set()) == 0) { 2584 if (setjmp(*jump.Set()) == 0) {
2580 NoSafepointScope no_safepoint; 2585 NoSafepointScope no_safepoint;
2581 WriteObject(obj.raw()); 2586 WriteObject(obj.raw());
2582 } else { 2587 } else {
2583 ThrowException(exception_type(), exception_msg()); 2588 ThrowException(exception_type(), exception_msg());
2584 } 2589 }
2585 } 2590 }
2586 2591
2587 2592
2588 } // namespace dart 2593 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.h ('k') | tests/standalone/precompilation_dart2js_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698