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

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

Issue 1336763002: Last snapshot bits to get working precompiled hello_world on x64. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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/precompiler.h" 5 #include "vm/precompiler.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/log.h" 9 #include "vm/log.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 static const struct { 204 static const struct {
205 const char* library_; 205 const char* library_;
206 const char* class_; 206 const char* class_;
207 const char* function_; 207 const char* function_;
208 } kExternallyCalled[] = { 208 } kExternallyCalled[] = {
209 { "dart:_builtin", "::", "_getMainClosure" }, 209 { "dart:_builtin", "::", "_getMainClosure" },
210 { "dart:_builtin", "::", "_getPrintClosure" }, 210 { "dart:_builtin", "::", "_getPrintClosure" },
211 { "dart:_builtin", "::", "_getUriBaseClosure" }, 211 { "dart:_builtin", "::", "_getUriBaseClosure" },
212 { "dart:_builtin", "::", "_resolveUri" }, 212 { "dart:_builtin", "::", "_resolveUri" },
213 { "dart:_builtin", "::", "_setWorkingDirectory" }, 213 { "dart:_builtin", "::", "_setWorkingDirectory" },
214 { "dart:_builtin", "::", "_loadDataAsync" },
214 { "dart:async", "::", "_setScheduleImmediateClosure" }, 215 { "dart:async", "::", "_setScheduleImmediateClosure" },
215 { "dart:core", "_InternalError", "_InternalError." }, 216 { "dart:core", "_InternalError", "_InternalError." },
216 { "dart:core", "_InvocationMirror", "_allocateInvocationMirror" }, 217 { "dart:core", "_InvocationMirror", "_allocateInvocationMirror" },
217 { "dart:io", "::", "_makeUint8ListView" }, 218 { "dart:io", "::", "_makeUint8ListView" },
218 { "dart:io", "::", "_makeDatagram" }, 219 { "dart:io", "::", "_makeDatagram" },
220 { "dart:io", "::", "_setupHooks" },
219 { "dart:io", "CertificateException", "CertificateException." }, 221 { "dart:io", "CertificateException", "CertificateException." },
220 { "dart:io", "HandshakeException", "HandshakeException." }, 222 { "dart:io", "HandshakeException", "HandshakeException." },
221 { "dart:io", "TlsException", "TlsException." }, 223 { "dart:io", "TlsException", "TlsException." },
222 { "dart:io", "X509Certificate", "X509Certificate." }, 224 { "dart:io", "X509Certificate", "X509Certificate." },
223 { "dart:io", "_ExternalBuffer", "set:data" }, 225 { "dart:io", "_ExternalBuffer", "set:data" },
224 { "dart:io", "_Platform", "set:_nativeScript" }, 226 { "dart:io", "_Platform", "set:_nativeScript" },
225 { "dart:io", "_ProcessStartStatus", "set:_errorCode" }, 227 { "dart:io", "_ProcessStartStatus", "set:_errorCode" },
226 { "dart:io", "_ProcessStartStatus", "set:_errorMessage" }, 228 { "dart:io", "_ProcessStartStatus", "set:_errorMessage" },
227 { "dart:io", "_SecureFilterImpl", "get:ENCRYPTED_SIZE" }, 229 { "dart:io", "_SecureFilterImpl", "get:ENCRYPTED_SIZE" },
228 { "dart:io", "_SecureFilterImpl", "get:SIZE" }, 230 { "dart:io", "_SecureFilterImpl", "get:SIZE" },
229 { "dart:isolate", "::", "_getIsolateScheduleImmediateClosure" }, 231 { "dart:isolate", "::", "_getIsolateScheduleImmediateClosure" },
230 { "dart:isolate", "::", "_startMainIsolate" }, 232 { "dart:isolate", "::", "_startMainIsolate" },
233 { "dart:isolate", "::", "_setupHooks" },
231 { "dart:isolate", "_RawReceivePortImpl", "_handleMessage" }, 234 { "dart:isolate", "_RawReceivePortImpl", "_handleMessage" },
232 { "dart:isolate", "_RawReceivePortImpl", "_lookupHandler" }, 235 { "dart:isolate", "_RawReceivePortImpl", "_lookupHandler" },
233 { "dart:vmservice", "::", "_registerIsolate" }, 236 { "dart:vmservice", "::", "_registerIsolate" },
234 { "dart:vmservice", "::", "boot" }, 237 { "dart:vmservice", "::", "boot" },
235 { "dart:vmservice_io", "::", "_addResource" }, 238 { "dart:vmservice_io", "::", "_addResource" },
236 { "dart:vmservice_io", "::", "main" }, 239 { "dart:vmservice_io", "::", "main" },
237 240
238 // Cf. Exceptions::Create 241 // Cf. Exceptions::Create
239 { "dart:core", "RangeError", "RangeError." }, 242 { "dart:core", "RangeError", "RangeError." },
240 { "dart:core", "RangeError", "RangeError.range" }, 243 { "dart:core", "RangeError", "RangeError.range" },
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 const Object& value = Object::Handle(Z, field.StaticValue()); 440 const Object& value = Object::Handle(Z, field.StaticValue());
438 const Class& cls = Class::Handle(Z, value.clazz()); 441 const Class& cls = Class::Handle(Z, value.clazz());
439 AddClass(cls); 442 AddClass(cls);
440 443
441 if (field.has_initializer()) { 444 if (field.has_initializer()) {
442 if (field.HasPrecompiledInitializer()) return; 445 if (field.HasPrecompiledInitializer()) return;
443 446
444 if (FLAG_trace_precompiler) { 447 if (FLAG_trace_precompiler) {
445 THR_Print("Precompiling initializer for %s\n", field.ToCString()); 448 THR_Print("Precompiling initializer for %s\n", field.ToCString());
446 } 449 }
447 ASSERT(Object::instructions_snapshot_buffer() == NULL); 450 ASSERT(!Dart::IsRunningPrecompiledCode());
448 field.SetStaticValue(Instance::Handle(field.SavedInitialStaticValue())); 451 field.SetStaticValue(Instance::Handle(field.SavedInitialStaticValue()));
449 Compiler::CompileStaticInitializer(field); 452 Compiler::CompileStaticInitializer(field);
450 453
451 const Function& function = 454 const Function& function =
452 Function::Handle(Z, field.PrecompiledInitializer()); 455 Function::Handle(Z, field.PrecompiledInitializer());
453 AddCalleesOf(function); 456 AddCalleesOf(function);
454 } 457 }
455 } 458 }
456 } 459 }
457 460
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 for (intptr_t j = 0; j < closures.Length(); j++) { 637 for (intptr_t j = 0; j < closures.Length(); j++) {
635 function ^= closures.At(j); 638 function ^= closures.At(j);
636 ASSERT(function.HasCode()); 639 ASSERT(function.HasCode());
637 } 640 }
638 } 641 }
639 } 642 }
640 } 643 }
641 } 644 }
642 645
643 } // namespace dart 646 } // namespace dart
OLDNEW
« runtime/vm/pages.cc ('K') | « runtime/vm/pages.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698