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

Side by Side Diff: src/hydrogen.cc

Issue 7737036: Reorganize object type enum, such that proxies are no longer in the middle (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Erik's 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/arm/lithium-codegen-arm.cc ('k') | src/ia32/full-codegen-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 5896 matching lines...) Expand 10 before | Expand all | Expand 10 after
5907 LAST_SPEC_OBJECT_TYPE); 5907 LAST_SPEC_OBJECT_TYPE);
5908 return ast_context()->ReturnControl(result, call->id()); 5908 return ast_context()->ReturnControl(result, call->id());
5909 } 5909 }
5910 5910
5911 5911
5912 void HGraphBuilder::GenerateIsFunction(CallRuntime* call) { 5912 void HGraphBuilder::GenerateIsFunction(CallRuntime* call) {
5913 ASSERT(call->arguments()->length() == 1); 5913 ASSERT(call->arguments()->length() == 1);
5914 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 5914 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
5915 HValue* value = Pop(); 5915 HValue* value = Pop();
5916 HHasInstanceTypeAndBranch* result = 5916 HHasInstanceTypeAndBranch* result =
5917 new(zone()) HHasInstanceTypeAndBranch(value, 5917 new(zone()) HHasInstanceTypeAndBranch(value, JS_FUNCTION_TYPE);
5918 JS_FUNCTION_TYPE,
5919 JS_FUNCTION_PROXY_TYPE);
5920 return ast_context()->ReturnControl(result, call->id()); 5918 return ast_context()->ReturnControl(result, call->id());
5921 } 5919 }
5922 5920
5923 5921
5924 void HGraphBuilder::GenerateHasCachedArrayIndex(CallRuntime* call) { 5922 void HGraphBuilder::GenerateHasCachedArrayIndex(CallRuntime* call) {
5925 ASSERT(call->arguments()->length() == 1); 5923 ASSERT(call->arguments()->length() == 1);
5926 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 5924 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
5927 HValue* value = Pop(); 5925 HValue* value = Pop();
5928 HHasCachedArrayIndexAndBranch* result = 5926 HHasCachedArrayIndexAndBranch* result =
5929 new(zone()) HHasCachedArrayIndexAndBranch(value); 5927 new(zone()) HHasCachedArrayIndexAndBranch(value);
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
6815 } 6813 }
6816 } 6814 }
6817 6815
6818 #ifdef DEBUG 6816 #ifdef DEBUG
6819 if (graph_ != NULL) graph_->Verify(); 6817 if (graph_ != NULL) graph_->Verify();
6820 if (allocator_ != NULL) allocator_->Verify(); 6818 if (allocator_ != NULL) allocator_->Verify();
6821 #endif 6819 #endif
6822 } 6820 }
6823 6821
6824 } } // namespace v8::internal 6822 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698