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

Unified Diff: src/hydrogen.cc

Issue 7356013: Implement Object.prototype.hasOwnProperty in generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 887ba7360282c7f2d39904ff150b240c4a5001af..25ba4f84fd156289eb9c16e17bb76a272343fcae 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -6143,6 +6143,17 @@ void HGraphBuilder::GenerateMathSqrt(CallRuntime* call) {
}
+void HGraphBuilder::GenerateHasOwnProperty(CallRuntime* call) {
+ ASSERT_EQ(2, call->arguments()->length());
+ CHECK_ALIVE(VisitArgumentList(call->arguments()));
+ HValue* context = environment()->LookupContext();
+ HCallStub* result = new(zone()) HCallStub(
Mads Ager (chromium) 2011/07/15 09:04:45 I would prefer HCallStub* result = new(zone()
+ context, CodeStub::HasOwnProperty, 2);
+ Drop(2);
+ ast_context()->ReturnInstruction(result, call->id());
+}
+
+
// Check whether two RegExps are equivalent
void HGraphBuilder::GenerateIsRegExpEquivalent(CallRuntime* call) {
return Bailout("inlined runtime function: IsRegExpEquivalent");
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.h » ('j') | src/ia32/code-stubs-ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698