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

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

Issue 58923004: Make HTypeofIsAndBranch accept any representation input (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: rebase Created 7 years, 1 month 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
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); 1107 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell);
1108 __ LoadHeapObject(ebx, cell); 1108 __ LoadHeapObject(ebx, cell);
1109 __ mov(FieldOperand(ebx, Cell::kValueOffset), 1109 __ mov(FieldOperand(ebx, Cell::kValueOffset),
1110 Immediate(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker))); 1110 Immediate(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker)));
1111 1111
1112 __ mov(ebx, Immediate(Smi::FromInt(1))); // Smi indicates slow check 1112 __ mov(ebx, Immediate(Smi::FromInt(1))); // Smi indicates slow check
1113 __ mov(ecx, Operand(esp, 0 * kPointerSize)); // Get enumerated object 1113 __ mov(ecx, Operand(esp, 0 * kPointerSize)); // Get enumerated object
1114 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); 1114 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE);
1115 __ CmpObjectType(ecx, LAST_JS_PROXY_TYPE, ecx); 1115 __ CmpObjectType(ecx, LAST_JS_PROXY_TYPE, ecx);
1116 __ j(above, &non_proxy); 1116 __ j(above, &non_proxy);
1117 __ mov(ebx, Immediate(Smi::FromInt(0))); // Zero indicates proxy 1117 __ Set(ebx, Immediate(Smi::FromInt(0))); // Zero indicates proxy
1118 __ bind(&non_proxy); 1118 __ bind(&non_proxy);
1119 __ push(ebx); // Smi 1119 __ push(ebx); // Smi
1120 __ push(eax); // Array 1120 __ push(eax); // Array
1121 __ mov(eax, FieldOperand(eax, FixedArray::kLengthOffset)); 1121 __ mov(eax, FieldOperand(eax, FixedArray::kLengthOffset));
1122 __ push(eax); // Fixed array length (as smi). 1122 __ push(eax); // Fixed array length (as smi).
1123 __ push(Immediate(Smi::FromInt(0))); // Initial index. 1123 __ push(Immediate(Smi::FromInt(0))); // Initial index.
1124 1124
1125 // Generate code for doing the condition check. 1125 // Generate code for doing the condition check.
1126 PrepareForBailoutForId(stmt->BodyId(), NO_REGISTERS); 1126 PrepareForBailoutForId(stmt->BodyId(), NO_REGISTERS);
1127 __ bind(&loop); 1127 __ bind(&loop);
(...skipping 3840 matching lines...) Expand 10 before | Expand all | Expand 10 after
4968 4968
4969 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4969 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4970 Assembler::target_address_at(call_target_address)); 4970 Assembler::target_address_at(call_target_address));
4971 return OSR_AFTER_STACK_CHECK; 4971 return OSR_AFTER_STACK_CHECK;
4972 } 4972 }
4973 4973
4974 4974
4975 } } // namespace v8::internal 4975 } } // namespace v8::internal
4976 4976
4977 #endif // V8_TARGET_ARCH_IA32 4977 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698