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

Side by Side Diff: src/full-codegen.cc

Issue 84833006: Add Isolate* parameter to static API methods that don't take one. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 7 years 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 | « src/api.cc ('k') | no next file » | 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 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 } 1572 }
1573 1573
1574 1574
1575 void FullCodeGenerator::VisitNativeFunctionLiteral( 1575 void FullCodeGenerator::VisitNativeFunctionLiteral(
1576 NativeFunctionLiteral* expr) { 1576 NativeFunctionLiteral* expr) {
1577 Comment cmnt(masm_, "[ NativeFunctionLiteral"); 1577 Comment cmnt(masm_, "[ NativeFunctionLiteral");
1578 1578
1579 // Compute the function template for the native function. 1579 // Compute the function template for the native function.
1580 Handle<String> name = expr->name(); 1580 Handle<String> name = expr->name();
1581 v8::Handle<v8::FunctionTemplate> fun_template = 1581 v8::Handle<v8::FunctionTemplate> fun_template =
1582 expr->extension()->GetNativeFunction(v8::Utils::ToLocal(name)); 1582 expr->extension()->GetNativeFunctionTemplate(
1583 reinterpret_cast<v8::Isolate*>(isolate()), v8::Utils::ToLocal(name));
1583 ASSERT(!fun_template.IsEmpty()); 1584 ASSERT(!fun_template.IsEmpty());
1584 1585
1585 // Instantiate the function and create a shared function info from it. 1586 // Instantiate the function and create a shared function info from it.
1586 Handle<JSFunction> fun = Utils::OpenHandle(*fun_template->GetFunction()); 1587 Handle<JSFunction> fun = Utils::OpenHandle(*fun_template->GetFunction());
1587 const int literals = fun->NumberOfLiterals(); 1588 const int literals = fun->NumberOfLiterals();
1588 Handle<Code> code = Handle<Code>(fun->shared()->code()); 1589 Handle<Code> code = Handle<Code>(fun->shared()->code());
1589 Handle<Code> construct_stub = Handle<Code>(fun->shared()->construct_stub()); 1590 Handle<Code> construct_stub = Handle<Code>(fun->shared()->construct_stub());
1590 bool is_generator = false; 1591 bool is_generator = false;
1591 Handle<SharedFunctionInfo> shared = 1592 Handle<SharedFunctionInfo> shared =
1592 isolate()->factory()->NewSharedFunctionInfo(name, literals, is_generator, 1593 isolate()->factory()->NewSharedFunctionInfo(name, literals, is_generator,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 } 1735 }
1735 return true; 1736 return true;
1736 } 1737 }
1737 #endif // DEBUG 1738 #endif // DEBUG
1738 1739
1739 1740
1740 #undef __ 1741 #undef __
1741 1742
1742 1743
1743 } } // namespace v8::internal 1744 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698