OLD | NEW |
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 4123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4134 Handle<Map> map, | 4134 Handle<Map> map, |
4135 CompareMapMode mode, | 4135 CompareMapMode mode, |
4136 LEnvironment* env) { | 4136 LEnvironment* env) { |
4137 Label success; | 4137 Label success; |
4138 __ CompareMapAndBranch(reg, scratch, map, &success, eq, &success, mode); | 4138 __ CompareMapAndBranch(reg, scratch, map, &success, eq, &success, mode); |
4139 DeoptimizeIf(al, env); | 4139 DeoptimizeIf(al, env); |
4140 __ bind(&success); | 4140 __ bind(&success); |
4141 } | 4141 } |
4142 | 4142 |
4143 | 4143 |
4144 void LCodeGen::DoCheckMap(LCheckMap* instr) { | 4144 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { |
4145 Register scratch = scratch0(); | 4145 Register scratch = scratch0(); |
4146 LOperand* input = instr->InputAt(0); | 4146 LOperand* input = instr->InputAt(0); |
4147 ASSERT(input->IsRegister()); | 4147 ASSERT(input->IsRegister()); |
4148 Register reg = ToRegister(input); | 4148 Register reg = ToRegister(input); |
4149 Handle<Map> map = instr->hydrogen()->map(); | 4149 Handle<Map> map = instr->hydrogen()->map(); |
4150 DoCheckMapCommon(reg, scratch, map, instr->hydrogen()->mode(), | 4150 DoCheckMapCommon(reg, scratch, map, instr->hydrogen()->mode(), |
4151 instr->environment()); | 4151 instr->environment()); |
4152 } | 4152 } |
4153 | 4153 |
4154 | 4154 |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4951 __ Subu(scratch, result, scratch); | 4951 __ Subu(scratch, result, scratch); |
4952 __ lw(result, FieldMemOperand(scratch, | 4952 __ lw(result, FieldMemOperand(scratch, |
4953 FixedArray::kHeaderSize - kPointerSize)); | 4953 FixedArray::kHeaderSize - kPointerSize)); |
4954 __ bind(&done); | 4954 __ bind(&done); |
4955 } | 4955 } |
4956 | 4956 |
4957 | 4957 |
4958 #undef __ | 4958 #undef __ |
4959 | 4959 |
4960 } } // namespace v8::internal | 4960 } } // namespace v8::internal |
OLD | NEW |