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

Side by Side Diff: src/bootstrapper.cc

Issue 21079003: Add new Harmony methods to Array.prototype object. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: review changes Created 7 years, 4 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 | « no previous file | src/flag-definitions.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 if (FLAG_harmony_iteration && 2078 if (FLAG_harmony_iteration &&
2079 strcmp(ExperimentalNatives::GetScriptName(i).start(), 2079 strcmp(ExperimentalNatives::GetScriptName(i).start(),
2080 "native array-iterator.js") == 0) { 2080 "native array-iterator.js") == 0) {
2081 if (!CompileExperimentalBuiltin(isolate(), i)) return false; 2081 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
2082 } 2082 }
2083 if (FLAG_harmony_strings && 2083 if (FLAG_harmony_strings &&
2084 strcmp(ExperimentalNatives::GetScriptName(i).start(), 2084 strcmp(ExperimentalNatives::GetScriptName(i).start(),
2085 "native harmony-string.js") == 0) { 2085 "native harmony-string.js") == 0) {
2086 if (!CompileExperimentalBuiltin(isolate(), i)) return false; 2086 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
2087 } 2087 }
2088 if (FLAG_harmony_arrays &&
2089 strcmp(ExperimentalNatives::GetScriptName(i).start(),
2090 "native harmony-array.js") == 0) {
2091 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
2092 }
2088 } 2093 }
2089 2094
2090 InstallExperimentalNativeFunctions(); 2095 InstallExperimentalNativeFunctions();
2091 2096
2092 return true; 2097 return true;
2093 } 2098 }
2094 2099
2095 2100
2096 static Handle<JSObject> ResolveBuiltinIdHolder( 2101 static Handle<JSObject> ResolveBuiltinIdHolder(
2097 Handle<Context> native_context, 2102 Handle<Context> native_context,
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
2680 return from + sizeof(NestingCounterType); 2685 return from + sizeof(NestingCounterType);
2681 } 2686 }
2682 2687
2683 2688
2684 // Called when the top-level V8 mutex is destroyed. 2689 // Called when the top-level V8 mutex is destroyed.
2685 void Bootstrapper::FreeThreadResources() { 2690 void Bootstrapper::FreeThreadResources() {
2686 ASSERT(!IsActive()); 2691 ASSERT(!IsActive());
2687 } 2692 }
2688 2693
2689 } } // namespace v8::internal 2694 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698