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

Unified Diff: src/builtins.cc

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast.cc ('k') | src/checks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index ae3dab46c3f3038a4a8157691211f1b7ec8e16ce..72f9d577e039798df4ee8215471d1b8e3678f43a 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -1594,11 +1594,10 @@ void Builtins::InitBuiltinFunctionTable() {
void Builtins::Setup(bool create_heap_objects) {
ASSERT(!initialized_);
- Isolate* isolate = Isolate::Current();
- Heap* heap = isolate->heap();
+ Heap* heap = Isolate::Current()->heap();
// Create a scope for the handles in the builtins.
- HandleScope scope(isolate);
+ HandleScope scope;
const BuiltinDesc* functions = BuiltinFunctionTable::functions();
@@ -1610,7 +1609,7 @@ void Builtins::Setup(bool create_heap_objects) {
// separate code object for each one.
for (int i = 0; i < builtin_count; i++) {
if (create_heap_objects) {
- MacroAssembler masm(isolate, buffer, sizeof buffer);
+ MacroAssembler masm(buffer, sizeof buffer);
// Generate the code/adaptor.
typedef void (*Generator)(MacroAssembler*, int, BuiltinExtraArguments);
Generator g = FUNCTION_CAST<Generator>(functions[i].generator);
@@ -1635,7 +1634,7 @@ void Builtins::Setup(bool create_heap_objects) {
}
}
// Log the event and add the code to the builtins array.
- PROFILE(isolate,
+ PROFILE(ISOLATE,
CodeCreateEvent(Logger::BUILTIN_TAG,
Code::cast(code),
functions[i].s_name));
« no previous file with comments | « src/ast.cc ('k') | src/checks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698