Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | |
|
Christian Plesner Hansen
2008/11/25 12:02:06
This is a mistake right? Consider reading your di
Lasse Reichstein
2008/11/25 14:21:40
Yes, it's a mistake.
Thanks for the tip on how to
| |
| 2 // Redistribution and use in source and binary forms, with or without | 1 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 2 // modification, are permitted provided that the following conditions are |
| 4 // met: | 3 // met: |
| 5 // | 4 // |
| 6 // * Redistributions of source code must retain the above copyright | 5 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 6 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 7 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 8 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 9 // disclaimer in the documentation and/or other materials provided |
| 11 // with the distribution. | 10 // with the distribution. |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 524 void RegExpMacroAssemblerIA32::WriteStackPointerToRegister(int reg) { | 523 void RegExpMacroAssemblerIA32::WriteStackPointerToRegister(int reg) { |
| 525 __ mov(register_location(reg), esp); | 524 __ mov(register_location(reg), esp); |
| 526 } | 525 } |
| 527 | 526 |
| 528 | 527 |
| 529 // Private methods: | 528 // Private methods: |
| 530 | 529 |
| 531 Operand RegExpMacroAssemblerIA32::register_location( | 530 Operand RegExpMacroAssemblerIA32::register_location( |
| 532 int register_index) { | 531 int register_index) { |
| 533 ASSERT(register_index < (1<<30)); | 532 ASSERT(register_index < (1<<30)); |
| 534 return Operand(ebp, -((register_index + 1) * sizeof(uint32_t))); | 533 return Operand(ebp, -(register_index + 1) * sizeof(uint32_t)); |
| 535 } | 534 } |
| 536 | 535 |
| 537 | 536 |
| 538 size_t RegExpMacroAssemblerIA32::char_size() { | 537 size_t RegExpMacroAssemblerIA32::char_size() { |
| 539 return static_cast<size_t>(mode_); | 538 return static_cast<size_t>(mode_); |
| 540 } | 539 } |
| 541 | 540 |
| 542 | 541 |
| 543 void RegExpMacroAssemblerIA32::BranchOrBacktrack(Condition condition, | 542 void RegExpMacroAssemblerIA32::BranchOrBacktrack(Condition condition, |
| 544 Label* to) { | 543 Label* to) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 599 | 598 |
| 600 | 599 |
| 601 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, | 600 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, |
| 602 ArraySlice* buffer) { | 601 ArraySlice* buffer) { |
| 603 __ mov(reg, buffer->array()); | 602 __ mov(reg, buffer->array()); |
| 604 __ add(Operand(reg), Immediate(buffer->base_offset())); | 603 __ add(Operand(reg), Immediate(buffer->base_offset())); |
| 605 } | 604 } |
| 606 | 605 |
| 607 #undef __ | 606 #undef __ |
| 608 }} | 607 }} |
| OLD | NEW |