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

Unified Diff: src/arm/full-codegen-arm.cc

Issue 7736018: Make functions on the built-in object non-writable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | src/messages.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/full-codegen-arm.cc
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc
index b58743de41a66e6dea3c420551b52d497dd515a0..55910e9155d8f40e3a2fdf9a338b2bfc6102a9d7 100644
--- a/src/arm/full-codegen-arm.cc
+++ b/src/arm/full-codegen-arm.cc
@@ -775,9 +775,9 @@ void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
// The context is the first argument.
__ mov(r2, Operand(pairs));
__ mov(r1, Operand(Smi::FromInt(is_eval() ? 1 : 0)));
Kevin Millikin (Chromium) 2011/09/01 07:58:24 Don't you have to remove this argument?
Lasse Reichstein 2011/09/01 09:26:58 Absolutely. I'm amazed that it seemed to work. Fix
- __ mov(r0, Operand(Smi::FromInt(strict_mode_flag())));
+ __ mov(r0, Operand(Smi::FromInt(DeclareGlobalsFlags())));
__ Push(cp, r2, r1, r0);
- __ CallRuntime(Runtime::kDeclareGlobals, 4);
+ __ CallRuntime(Runtime::kDeclareGlobals, 3);
// Return value is ignored.
}
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | src/messages.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698