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

Side by Side Diff: src/hydrogen.cc

Issue 7623011: Implement function proxies (except for their use as constructors). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed second round of comments. Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 5826 matching lines...) Expand 10 before | Expand all | Expand 10 after
5837 LAST_SPEC_OBJECT_TYPE); 5837 LAST_SPEC_OBJECT_TYPE);
5838 return ast_context()->ReturnControl(result, call->id()); 5838 return ast_context()->ReturnControl(result, call->id());
5839 } 5839 }
5840 5840
5841 5841
5842 void HGraphBuilder::GenerateIsFunction(CallRuntime* call) { 5842 void HGraphBuilder::GenerateIsFunction(CallRuntime* call) {
5843 ASSERT(call->arguments()->length() == 1); 5843 ASSERT(call->arguments()->length() == 1);
5844 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 5844 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
5845 HValue* value = Pop(); 5845 HValue* value = Pop();
5846 HHasInstanceTypeAndBranch* result = 5846 HHasInstanceTypeAndBranch* result =
5847 new(zone()) HHasInstanceTypeAndBranch(value, JS_FUNCTION_TYPE); 5847 new(zone()) HHasInstanceTypeAndBranch(value,
5848 JS_FUNCTION_TYPE,
5849 JS_FUNCTION_PROXY_TYPE);
5848 return ast_context()->ReturnControl(result, call->id()); 5850 return ast_context()->ReturnControl(result, call->id());
5849 } 5851 }
5850 5852
5851 5853
5852 void HGraphBuilder::GenerateHasCachedArrayIndex(CallRuntime* call) { 5854 void HGraphBuilder::GenerateHasCachedArrayIndex(CallRuntime* call) {
5853 ASSERT(call->arguments()->length() == 1); 5855 ASSERT(call->arguments()->length() == 1);
5854 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 5856 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
5855 HValue* value = Pop(); 5857 HValue* value = Pop();
5856 HHasCachedArrayIndexAndBranch* result = 5858 HHasCachedArrayIndexAndBranch* result =
5857 new(zone()) HHasCachedArrayIndexAndBranch(value); 5859 new(zone()) HHasCachedArrayIndexAndBranch(value);
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
6746 } 6748 }
6747 } 6749 }
6748 6750
6749 #ifdef DEBUG 6751 #ifdef DEBUG
6750 if (graph_ != NULL) graph_->Verify(); 6752 if (graph_ != NULL) graph_->Verify();
6751 if (allocator_ != NULL) allocator_->Verify(); 6753 if (allocator_ != NULL) allocator_->Verify();
6752 #endif 6754 #endif
6753 } 6755 }
6754 6756
6755 } } // namespace v8::internal 6757 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698