OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1611 return result; | 1611 return result; |
1612 } | 1612 } |
1613 | 1613 |
1614 | 1614 |
1615 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { | 1615 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { |
1616 return ref0.address() - ref1.address(); | 1616 return ref0.address() - ref1.address(); |
1617 } | 1617 } |
1618 | 1618 |
1619 | 1619 |
1620 MaybeObject* MacroAssembler::TryCallApiFunctionAndReturn( | 1620 MaybeObject* MacroAssembler::TryCallApiFunctionAndReturn( |
1621 ApiFunction* function, int stack_space) { | 1621 ExternalReference function, int stack_space) { |
1622 ExternalReference next_address = | 1622 ExternalReference next_address = |
1623 ExternalReference::handle_scope_next_address(); | 1623 ExternalReference::handle_scope_next_address(); |
1624 const int kNextOffset = 0; | 1624 const int kNextOffset = 0; |
1625 const int kLimitOffset = AddressOffset( | 1625 const int kLimitOffset = AddressOffset( |
1626 ExternalReference::handle_scope_limit_address(), | 1626 ExternalReference::handle_scope_limit_address(), |
1627 next_address); | 1627 next_address); |
1628 const int kLevelOffset = AddressOffset( | 1628 const int kLevelOffset = AddressOffset( |
1629 ExternalReference::handle_scope_level_address(), | 1629 ExternalReference::handle_scope_level_address(), |
1630 next_address); | 1630 next_address); |
1631 | 1631 |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 void CodePatcher::EmitCondition(Condition cond) { | 2569 void CodePatcher::EmitCondition(Condition cond) { |
2570 Instr instr = Assembler::instr_at(masm_.pc_); | 2570 Instr instr = Assembler::instr_at(masm_.pc_); |
2571 instr = (instr & ~kCondMask) | cond; | 2571 instr = (instr & ~kCondMask) | cond; |
2572 masm_.emit(instr); | 2572 masm_.emit(instr); |
2573 } | 2573 } |
2574 | 2574 |
2575 | 2575 |
2576 } } // namespace v8::internal | 2576 } } // namespace v8::internal |
2577 | 2577 |
2578 #endif // V8_TARGET_ARCH_ARM | 2578 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |