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

Side by Side Diff: src/hydrogen.cc

Issue 12095035: %X => %_X, %_X => %__X (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 10 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/ast.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 8631 matching lines...) Expand 10 before | Expand all | Expand 10 after
8642 8642
8643 8643
8644 // Check for the form (%_ClassOf(foo) === 'BarClass'). 8644 // Check for the form (%_ClassOf(foo) === 'BarClass').
8645 static bool IsClassOfTest(CompareOperation* expr) { 8645 static bool IsClassOfTest(CompareOperation* expr) {
8646 if (expr->op() != Token::EQ_STRICT) return false; 8646 if (expr->op() != Token::EQ_STRICT) return false;
8647 CallRuntime* call = expr->left()->AsCallRuntime(); 8647 CallRuntime* call = expr->left()->AsCallRuntime();
8648 if (call == NULL) return false; 8648 if (call == NULL) return false;
8649 Literal* literal = expr->right()->AsLiteral(); 8649 Literal* literal = expr->right()->AsLiteral();
8650 if (literal == NULL) return false; 8650 if (literal == NULL) return false;
8651 if (!literal->handle()->IsString()) return false; 8651 if (!literal->handle()->IsString()) return false;
8652 if (!call->name()->IsOneByteEqualTo(STATIC_ASCII_VECTOR("_ClassOf"))) { 8652 if (!call->name()->IsOneByteEqualTo(STATIC_ASCII_VECTOR("__ClassOf"))) {
8653 return false; 8653 return false;
8654 } 8654 }
8655 ASSERT(call->arguments()->length() == 1); 8655 ASSERT(call->arguments()->length() == 1);
8656 return true; 8656 return true;
8657 } 8657 }
8658 8658
8659 8659
8660 void HOptimizedGraphBuilder::VisitBinaryOperation(BinaryOperation* expr) { 8660 void HOptimizedGraphBuilder::VisitBinaryOperation(BinaryOperation* expr) {
8661 ASSERT(!HasStackOverflow()); 8661 ASSERT(!HasStackOverflow());
8662 ASSERT(current_block() != NULL); 8662 ASSERT(current_block() != NULL);
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
10348 } 10348 }
10349 } 10349 }
10350 10350
10351 #ifdef DEBUG 10351 #ifdef DEBUG
10352 if (graph_ != NULL) graph_->Verify(false); // No full verify. 10352 if (graph_ != NULL) graph_->Verify(false); // No full verify.
10353 if (allocator_ != NULL) allocator_->Verify(); 10353 if (allocator_ != NULL) allocator_->Verify();
10354 #endif 10354 #endif
10355 } 10355 }
10356 10356
10357 } } // namespace v8::internal 10357 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698