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

Side by Side Diff: src/hydrogen.cc

Issue 5806001: Support %_IsObject in Crankshaft. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 4930 matching lines...) Expand 10 before | Expand all | Expand 10 after
4941 4941
4942 4942
4943 void HGraphBuilder::GenerateIsRegExp(int argument_count, int ast_id) { 4943 void HGraphBuilder::GenerateIsRegExp(int argument_count, int ast_id) {
4944 ASSERT(argument_count == 1); 4944 ASSERT(argument_count == 1);
4945 HValue* value = Pop(); 4945 HValue* value = Pop();
4946 HHasInstanceType* result = new HHasInstanceType(value, JS_REGEXP_TYPE); 4946 HHasInstanceType* result = new HHasInstanceType(value, JS_REGEXP_TYPE);
4947 ast_context()->ReturnInstruction(result, ast_id); 4947 ast_context()->ReturnInstruction(result, ast_id);
4948 } 4948 }
4949 4949
4950 4950
4951 void HGraphBuilder::GenerateIsObject(int argument_count, int ast_id) {
4952 ASSERT(argument_count == 1);
4953
4954 HValue* value = Pop();
4955 HIsObject* test = new HIsObject(value);
4956 ast_context()->ReturnInstruction(test, ast_id);
4957 }
4958
4959
4951 void HGraphBuilder::GenerateIsNonNegativeSmi(int argument_count, 4960 void HGraphBuilder::GenerateIsNonNegativeSmi(int argument_count,
4952 int ast_id) { 4961 int ast_id) {
4953 BAILOUT("inlined runtime function: IsNonNegativeSmi"); 4962 BAILOUT("inlined runtime function: IsNonNegativeSmi");
4954 } 4963 }
4955 4964
4956 4965
4957 void HGraphBuilder::GenerateIsObject(int argument_count, int ast_id) {
4958 BAILOUT("inlined runtime function: IsObject");
4959 }
4960
4961
4962 void HGraphBuilder::GenerateIsUndetectableObject(int argument_count, 4966 void HGraphBuilder::GenerateIsUndetectableObject(int argument_count,
4963 int ast_id) { 4967 int ast_id) {
4964 BAILOUT("inlined runtime function: IsUndetectableObject"); 4968 BAILOUT("inlined runtime function: IsUndetectableObject");
4965 } 4969 }
4966 4970
4967 4971
4968 void HGraphBuilder::GenerateIsStringWrapperSafeForDefaultValueOf( 4972 void HGraphBuilder::GenerateIsStringWrapperSafeForDefaultValueOf(
4969 int argument_count, 4973 int argument_count,
4970 int ast_id) { 4974 int ast_id) {
4971 BAILOUT("inlined runtime function: IsStringWrapperSafeForDefaultValueOf"); 4975 BAILOUT("inlined runtime function: IsStringWrapperSafeForDefaultValueOf");
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
5665 } 5669 }
5666 5670
5667 #ifdef DEBUG 5671 #ifdef DEBUG
5668 if (graph_ != NULL) graph_->Verify(); 5672 if (graph_ != NULL) graph_->Verify();
5669 if (chunk_ != NULL) chunk_->Verify(); 5673 if (chunk_ != NULL) chunk_->Verify();
5670 if (allocator_ != NULL) allocator_->Verify(); 5674 if (allocator_ != NULL) allocator_->Verify();
5671 #endif 5675 #endif
5672 } 5676 }
5673 5677
5674 } } // namespace v8::internal 5678 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698