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

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 19556003: Fix LiteralCompareTypeof breakage introduced in r15723 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/x64/full-codegen-x64.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 4614 matching lines...) Expand 10 before | Expand all | Expand 10 after
4625 Expression* sub_expr, 4625 Expression* sub_expr,
4626 Handle<String> check) { 4626 Handle<String> check) {
4627 Label materialize_true, materialize_false; 4627 Label materialize_true, materialize_false;
4628 Label* if_true = NULL; 4628 Label* if_true = NULL;
4629 Label* if_false = NULL; 4629 Label* if_false = NULL;
4630 Label* fall_through = NULL; 4630 Label* fall_through = NULL;
4631 context()->PrepareTest(&materialize_true, &materialize_false, 4631 context()->PrepareTest(&materialize_true, &materialize_false,
4632 &if_true, &if_false, &fall_through); 4632 &if_true, &if_false, &fall_through);
4633 4633
4634 { AccumulatorValueContext context(this); 4634 { AccumulatorValueContext context(this);
4635 VisitForTypeofValue(sub_expr); 4635 VisitForTypeofValue(sub_expr->AsUnaryOperation()->expression());
4636 } 4636 }
4637 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 4637 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
4638 4638
4639 if (check->Equals(isolate()->heap()->number_string())) { 4639 if (check->Equals(isolate()->heap()->number_string())) {
4640 __ JumpIfSmi(v0, if_true); 4640 __ JumpIfSmi(v0, if_true);
4641 __ lw(v0, FieldMemOperand(v0, HeapObject::kMapOffset)); 4641 __ lw(v0, FieldMemOperand(v0, HeapObject::kMapOffset));
4642 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex); 4642 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex);
4643 Split(eq, v0, Operand(at), if_true, if_false, fall_through); 4643 Split(eq, v0, Operand(at), if_true, if_false, fall_through);
4644 } else if (check->Equals(isolate()->heap()->string_string())) { 4644 } else if (check->Equals(isolate()->heap()->string_string())) {
4645 __ JumpIfSmi(v0, if_false); 4645 __ JumpIfSmi(v0, if_false);
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
4945 *context_length = 0; 4945 *context_length = 0;
4946 return previous_; 4946 return previous_;
4947 } 4947 }
4948 4948
4949 4949
4950 #undef __ 4950 #undef __
4951 4951
4952 } } // namespace v8::internal 4952 } } // namespace v8::internal
4953 4953
4954 #endif // V8_TARGET_ARCH_MIPS 4954 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698