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

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: Review comments. 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
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 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 ASSERT(cls.IsDynamicClass()); 1528 ASSERT(cls.IsDynamicClass());
1529 return error.raw(); 1529 return error.raw();
1530 } 1530 }
1531 // Compile all the regular functions. 1531 // Compile all the regular functions.
1532 for (int i = 0; i < functions.Length(); i++) { 1532 for (int i = 0; i < functions.Length(); i++) {
1533 func ^= functions.At(i); 1533 func ^= functions.At(i);
1534 ASSERT(!func.IsNull()); 1534 ASSERT(!func.IsNull());
1535 if (!func.HasCode() && 1535 if (!func.HasCode() &&
1536 !func.is_abstract() && 1536 !func.is_abstract() &&
1537 !func.IsRedirectingFactory()) { 1537 !func.IsRedirectingFactory()) {
1538 if ((cls.is_mixin_app_alias() || cls.IsMixinApplication()) &&
1539 func.HasOptionalParameters()) {
1540 // Skipping optional parameters in mixin application.
1541 continue;
1542 }
1538 error = CompileFunction(thread, func); 1543 error = CompileFunction(thread, func);
1539 if (!error.IsNull()) { 1544 if (!error.IsNull()) {
1540 return error.raw(); 1545 return error.raw();
1541 } 1546 }
1542 func.ClearICDataArray(); 1547 func.ClearICDataArray();
1543 func.ClearCode(); 1548 func.ClearCode();
1544 } 1549 }
1545 } 1550 }
1546 return error.raw(); 1551 return error.raw();
1547 } 1552 }
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 } 2110 }
2106 2111
2107 2112
2108 void BackgroundCompiler::EnsureInit(Thread* thread) { 2113 void BackgroundCompiler::EnsureInit(Thread* thread) {
2109 UNREACHABLE(); 2114 UNREACHABLE();
2110 } 2115 }
2111 2116
2112 #endif // DART_PRECOMPILED_RUNTIME 2117 #endif // DART_PRECOMPILED_RUNTIME
2113 2118
2114 } // namespace dart 2119 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698