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

Unified Diff: src/ia32/full-codegen-ia32.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/ia32/full-codegen-ia32.cc
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
index c0d7e7c6d1492ca683f85e8ca7e0a5e6c5586898..867cd3c0216e62fb4b3ce2778e9fbc5a5f8b25f8 100644
--- a/src/ia32/full-codegen-ia32.cc
+++ b/src/ia32/full-codegen-ia32.cc
@@ -2548,6 +2548,18 @@ void FullCodeGenerator::EmitIsRegExp(ZoneList<Expression*>* args) {
}
+void FullCodeGenerator::EmitHasOwnProperty(ZoneList<Expression*>* args) {
+ ASSERT(args->length() == 2);
+
+ VisitForStackValue(args->at(0));
+ VisitForStackValue(args->at(1));
+
+ HasOwnPropertyStub stub;
+ __ CallStub(&stub);
+
+ context()->Plug(eax);
+}
+
void FullCodeGenerator::EmitIsConstructCall(ZoneList<Expression*>* args) {
ASSERT(args->length() == 0);

Powered by Google App Engine
This is Rietveld 408576698