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

Side by Side Diff: src/bootstrapper.cc

Issue 6932068: A first skeleton for introducing Harmony proxies (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Addressed Kevin's comments. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « include/v8.h ('k') | src/factory.h » ('j') | src/heap.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 1631
1632 #ifdef DEBUG 1632 #ifdef DEBUG
1633 builtins->Verify(); 1633 builtins->Verify();
1634 #endif 1634 #endif
1635 1635
1636 return true; 1636 return true;
1637 } 1637 }
1638 1638
1639 1639
1640 bool Genesis::InstallExperimentalNatives() { 1640 bool Genesis::InstallExperimentalNatives() {
1641 if (FLAG_harmony_proxies) { 1641 for (int i = ExperimentalNatives::GetDebuggerCount();
1642 for (int i = ExperimentalNatives::GetDebuggerCount(); 1642 i < ExperimentalNatives::GetBuiltinsCount();
1643 i < ExperimentalNatives::GetBuiltinsCount(); 1643 i++) {
1644 i++) { 1644 if (FLAG_harmony_proxies &&
1645 strcmp(ExperimentalNatives::GetScriptName(i).start(),
1646 "native proxy.js") == 0) {
1645 if (!CompileExperimentalBuiltin(isolate(), i)) return false; 1647 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
1646 } 1648 }
1647 } 1649 }
1648 return true; 1650 return true;
1649 } 1651 }
1650 1652
1651 1653
1652 static Handle<JSObject> ResolveBuiltinIdHolder( 1654 static Handle<JSObject> ResolveBuiltinIdHolder(
1653 Handle<Context> global_context, 1655 Handle<Context> global_context,
1654 const char* holder_expr) { 1656 const char* holder_expr) {
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 return from + sizeof(NestingCounterType); 2160 return from + sizeof(NestingCounterType);
2159 } 2161 }
2160 2162
2161 2163
2162 // Called when the top-level V8 mutex is destroyed. 2164 // Called when the top-level V8 mutex is destroyed.
2163 void Bootstrapper::FreeThreadResources() { 2165 void Bootstrapper::FreeThreadResources() {
2164 ASSERT(!IsActive()); 2166 ASSERT(!IsActive());
2165 } 2167 }
2166 2168
2167 } } // namespace v8::internal 2169 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/factory.h » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698