| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 4367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4378 DeoptimizeIf(equal, instr->environment()); | 4378 DeoptimizeIf(equal, instr->environment()); |
| 4379 __ bind(&no_memento_found); | 4379 __ bind(&no_memento_found); |
| 4380 } | 4380 } |
| 4381 | 4381 |
| 4382 | 4382 |
| 4383 void LCodeGen::DoStringAdd(LStringAdd* instr) { | 4383 void LCodeGen::DoStringAdd(LStringAdd* instr) { |
| 4384 ASSERT(ToRegister(instr->context()).is(rsi)); | 4384 ASSERT(ToRegister(instr->context()).is(rsi)); |
| 4385 ASSERT(ToRegister(instr->left()).is(rdx)); | 4385 ASSERT(ToRegister(instr->left()).is(rdx)); |
| 4386 ASSERT(ToRegister(instr->right()).is(rax)); | 4386 ASSERT(ToRegister(instr->right()).is(rax)); |
| 4387 StringAddStub stub(instr->hydrogen()->flags(), | 4387 StringAddStub stub(instr->hydrogen()->flags(), |
| 4388 isolate()->heap()->GetPretenureMode()); | 4388 instr->hydrogen()->pretenure_flag()); |
| 4389 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); | 4389 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); |
| 4390 } | 4390 } |
| 4391 | 4391 |
| 4392 | 4392 |
| 4393 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { | 4393 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { |
| 4394 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { | 4394 class DeferredStringCharCodeAt V8_FINAL : public LDeferredCode { |
| 4395 public: | 4395 public: |
| 4396 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) | 4396 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) |
| 4397 : LDeferredCode(codegen), instr_(instr) { } | 4397 : LDeferredCode(codegen), instr_(instr) { } |
| 4398 virtual void Generate() V8_OVERRIDE { | 4398 virtual void Generate() V8_OVERRIDE { |
| (...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5623 FixedArray::kHeaderSize - kPointerSize)); | 5623 FixedArray::kHeaderSize - kPointerSize)); |
| 5624 __ bind(&done); | 5624 __ bind(&done); |
| 5625 } | 5625 } |
| 5626 | 5626 |
| 5627 | 5627 |
| 5628 #undef __ | 5628 #undef __ |
| 5629 | 5629 |
| 5630 } } // namespace v8::internal | 5630 } } // namespace v8::internal |
| 5631 | 5631 |
| 5632 #endif // V8_TARGET_ARCH_X64 | 5632 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |