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

Side by Side Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 1158423005: Move IS_INDEXABLE_FIELD to JsGetName. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 part of ssa; 5 part of ssa;
6 6
7 class SsaFunctionCompiler implements FunctionCompiler { 7 class SsaFunctionCompiler implements FunctionCompiler {
8 SsaCodeGeneratorTask generator; 8 SsaCodeGeneratorTask generator;
9 SsaBuilderTask builder; 9 SsaBuilderTask builder;
10 SsaOptimizerTask optimizer; 10 SsaOptimizerTask optimizer;
(...skipping 4240 matching lines...) Expand 10 before | Expand all | Expand 10 after
4251 } else if (name == 'JS_CURRENT_ISOLATE_CONTEXT') { 4251 } else if (name == 'JS_CURRENT_ISOLATE_CONTEXT') {
4252 handleForeignJsCurrentIsolateContext(node); 4252 handleForeignJsCurrentIsolateContext(node);
4253 } else if (name == 'JS_CALL_IN_ISOLATE') { 4253 } else if (name == 'JS_CALL_IN_ISOLATE') {
4254 handleForeignJsCallInIsolate(node); 4254 handleForeignJsCallInIsolate(node);
4255 } else if (name == 'DART_CLOSURE_TO_JS') { 4255 } else if (name == 'DART_CLOSURE_TO_JS') {
4256 handleForeignDartClosureToJs(node, 'DART_CLOSURE_TO_JS'); 4256 handleForeignDartClosureToJs(node, 'DART_CLOSURE_TO_JS');
4257 } else if (name == 'RAW_DART_FUNCTION_REF') { 4257 } else if (name == 'RAW_DART_FUNCTION_REF') {
4258 handleForeignRawFunctionRef(node, 'RAW_DART_FUNCTION_REF'); 4258 handleForeignRawFunctionRef(node, 'RAW_DART_FUNCTION_REF');
4259 } else if (name == 'JS_SET_CURRENT_ISOLATE') { 4259 } else if (name == 'JS_SET_CURRENT_ISOLATE') {
4260 handleForeignSetCurrentIsolate(node); 4260 handleForeignSetCurrentIsolate(node);
4261 } else if (name == 'JS_IS_INDEXABLE_FIELD_NAME') {
4262 // TODO(floitsch): this should be a JS_NAME.
4263 Element element = backend.findHelper('JavaScriptIndexingBehavior');
4264 stack.add(addConstantString(backend.namer.operatorIs(element)));
4265 } else if (name == 'JS_CURRENT_ISOLATE') { 4261 } else if (name == 'JS_CURRENT_ISOLATE') {
4266 handleForeignJsCurrentIsolate(node); 4262 handleForeignJsCurrentIsolate(node);
4267 } else if (name == 'JS_GET_NAME') { 4263 } else if (name == 'JS_GET_NAME') {
4268 handleForeignJsGetName(node); 4264 handleForeignJsGetName(node);
4269 } else if (name == 'JS_EMBEDDED_GLOBAL') { 4265 } else if (name == 'JS_EMBEDDED_GLOBAL') {
4270 handleForeignJsEmbeddedGlobal(node); 4266 handleForeignJsEmbeddedGlobal(node);
4271 } else if (name == 'JS_BUILTIN') { 4267 } else if (name == 'JS_BUILTIN') {
4272 handleForeignJsBuiltin(node); 4268 handleForeignJsBuiltin(node);
4273 } else if (name == 'JS_GET_FLAG') { 4269 } else if (name == 'JS_GET_FLAG') {
4274 handleForeingJsGetFlag(node); 4270 handleForeingJsGetFlag(node);
(...skipping 3547 matching lines...) Expand 10 before | Expand all | Expand 10 after
7822 if (unaliased is TypedefType) throw 'unable to unalias $type'; 7818 if (unaliased is TypedefType) throw 'unable to unalias $type';
7823 unaliased.accept(this, builder); 7819 unaliased.accept(this, builder);
7824 } 7820 }
7825 7821
7826 void visitDynamicType(DynamicType type, SsaBuilder builder) { 7822 void visitDynamicType(DynamicType type, SsaBuilder builder) {
7827 JavaScriptBackend backend = builder.compiler.backend; 7823 JavaScriptBackend backend = builder.compiler.backend;
7828 ClassElement cls = backend.findHelper('DynamicRuntimeType'); 7824 ClassElement cls = backend.findHelper('DynamicRuntimeType');
7829 builder.push(new HDynamicType(type, new TypeMask.exact(cls, classWorld))); 7825 builder.push(new HDynamicType(type, new TypeMask.exact(cls, classWorld)));
7830 } 7826 }
7831 } 7827 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer.dart ('k') | sdk/lib/_internal/compiler/js_lib/foreign_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698