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

Unified Diff: src/hydrogen.h

Issue 400523007: Cache IC handlers on the prototype's map if possible (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment Created 6 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
« no previous file with comments | « src/globals.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index a49fef72007013a745049b5e387daad99e724684..bb9366739042fa975d0d96b0f21fbb439e1837ae 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -2466,23 +2466,7 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
// PropertyAccessInfo is built for types->first().
bool CanAccessAsMonomorphic(SmallMapList* types);
- Handle<Map> map() {
- if (type_->Is(Type::Number())) {
- Context* context = current_info()->closure()->context();
- context = context->native_context();
- return handle(context->number_function()->initial_map());
- } else if (type_->Is(Type::Boolean())) {
- Context* context = current_info()->closure()->context();
- context = context->native_context();
- return handle(context->boolean_function()->initial_map());
- } else if (type_->Is(Type::String())) {
- Context* context = current_info()->closure()->context();
- context = context->native_context();
- return handle(context->string_function()->initial_map());
- } else {
- return type_->AsClass()->Map();
- }
- }
+ Handle<Map> map();
Type* type() const { return type_; }
Handle<String> name() const { return name_; }
« no previous file with comments | « src/globals.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698