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

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

Issue 1916793003: - Allow for loading dart:html and friends into the standalone (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase. Created 4 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
« no previous file with comments | « runtime/lib/errors_patch.dart ('k') | runtime/vm/parser.cc » ('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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 ASSERT(cls.IsDynamicClass()); 1531 ASSERT(cls.IsDynamicClass());
1532 return error.raw(); 1532 return error.raw();
1533 } 1533 }
1534 // Compile all the regular functions. 1534 // Compile all the regular functions.
1535 for (int i = 0; i < functions.Length(); i++) { 1535 for (int i = 0; i < functions.Length(); i++) {
1536 func ^= functions.At(i); 1536 func ^= functions.At(i);
1537 ASSERT(!func.IsNull()); 1537 ASSERT(!func.IsNull());
1538 if (!func.HasCode() && 1538 if (!func.HasCode() &&
1539 !func.is_abstract() && 1539 !func.is_abstract() &&
1540 !func.IsRedirectingFactory()) { 1540 !func.IsRedirectingFactory()) {
1541 if ((cls.is_mixin_app_alias() || cls.IsMixinApplication()) &&
1542 func.HasOptionalParameters()) {
1543 // Skipping optional parameters in mixin application.
1544 continue;
1545 }
1541 error = CompileFunction(thread, func); 1546 error = CompileFunction(thread, func);
1542 if (!error.IsNull()) { 1547 if (!error.IsNull()) {
1543 return error.raw(); 1548 return error.raw();
1544 } 1549 }
1545 func.ClearICDataArray(); 1550 func.ClearICDataArray();
1546 func.ClearCode(); 1551 func.ClearCode();
1547 } 1552 }
1548 } 1553 }
1549 return error.raw(); 1554 return error.raw();
1550 } 1555 }
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 } 2113 }
2109 2114
2110 2115
2111 void BackgroundCompiler::EnsureInit(Thread* thread) { 2116 void BackgroundCompiler::EnsureInit(Thread* thread) {
2112 UNREACHABLE(); 2117 UNREACHABLE();
2113 } 2118 }
2114 2119
2115 #endif // DART_PRECOMPILED_RUNTIME 2120 #endif // DART_PRECOMPILED_RUNTIME
2116 2121
2117 } // namespace dart 2122 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/lib/errors_patch.dart ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698