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

Unified Diff: src/parser.cc

Issue 458813002: Prototype implementation of GET_OWN_PROPERTY intrinsic. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/ic.cc ('k') | src/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 6c941daa978d3d53bdc6cfca5f1914195bc7d2f0..51dc6de067cb662211d683797421d9a2f6d4cb6b 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -3794,6 +3794,11 @@ Expression* Parser::ParseV8Intrinsic(bool* ok) {
return NULL;
}
+ if (function != NULL &&
+ function->function_id == Runtime::kGET_OWN_PROPERTY) {
+ return factory()->NewOwnProperty(args->at(0), args->at(1), pos);
+ }
+
// Check that the function is defined if it's an inline runtime call.
if (function == NULL && name->FirstCharacter() == '_') {
ParserTraits::ReportMessage("not_defined", name);
« no previous file with comments | « src/ic.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698