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

Side by Side Diff: sdk/lib/_internal/compiler/js_lib/native_helper.dart

Issue 538513002: Move js library back into compiler directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
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 _js_helper; 5 part of _js_helper;
6 6
7 7
8 // TODO(ngeoffray): stop using this method once our optimizers can 8 // TODO(ngeoffray): stop using this method once our optimizers can
9 // change str1.contains(str2) into str1.indexOf(str2) != -1. 9 // change str1.contains(str2) into str1.indexOf(str2) != -1.
10 bool contains(String userAgent, String name) { 10 bool contains(String userAgent, String name) {
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 const _safariHooksTransformer = const JS_CONST(r''' 643 const _safariHooksTransformer = const JS_CONST(r'''
644 function(hooks) { return hooks; } 644 function(hooks) { return hooks; }
645 '''); 645 ''');
646 646
647 647
648 const _dartExperimentalFixupGetTagHooksTransformer = const JS_CONST(r''' 648 const _dartExperimentalFixupGetTagHooksTransformer = const JS_CONST(r'''
649 function(hooks) { 649 function(hooks) {
650 if (typeof dartExperimentalFixupGetTag != "function") return hooks; 650 if (typeof dartExperimentalFixupGetTag != "function") return hooks;
651 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); 651 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag);
652 }'''); 652 }''');
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/mirrors_patch.dart ('k') | sdk/lib/_internal/compiler/js_lib/native_typed_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698