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 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1488 return result; | 1488 return result; |
1489 } | 1489 } |
1490 | 1490 |
1491 | 1491 |
1492 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { | 1492 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { |
1493 return ref0.address() - ref1.address(); | 1493 return ref0.address() - ref1.address(); |
1494 } | 1494 } |
1495 | 1495 |
1496 | 1496 |
1497 MaybeObject* MacroAssembler::TryCallApiFunctionAndReturn( | 1497 MaybeObject* MacroAssembler::TryCallApiFunctionAndReturn( |
1498 ApiFunction* function, int stack_space) { | 1498 ExternalReference function, int stack_space) { |
1499 ExternalReference next_address = | 1499 ExternalReference next_address = |
1500 ExternalReference::handle_scope_next_address(); | 1500 ExternalReference::handle_scope_next_address(); |
1501 const int kNextOffset = 0; | 1501 const int kNextOffset = 0; |
1502 const int kLimitOffset = AddressOffset( | 1502 const int kLimitOffset = AddressOffset( |
1503 ExternalReference::handle_scope_limit_address(), | 1503 ExternalReference::handle_scope_limit_address(), |
1504 next_address); | 1504 next_address); |
1505 const int kLevelOffset = AddressOffset( | 1505 const int kLevelOffset = AddressOffset( |
1506 ExternalReference::handle_scope_level_address(), | 1506 ExternalReference::handle_scope_level_address(), |
1507 next_address); | 1507 next_address); |
1508 | 1508 |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2409 | 2409 |
2410 void CodePatcher::Emit(Address addr) { | 2410 void CodePatcher::Emit(Address addr) { |
2411 masm()->emit(reinterpret_cast<Instr>(addr)); | 2411 masm()->emit(reinterpret_cast<Instr>(addr)); |
2412 } | 2412 } |
2413 #endif // ENABLE_DEBUGGER_SUPPORT | 2413 #endif // ENABLE_DEBUGGER_SUPPORT |
2414 | 2414 |
2415 | 2415 |
2416 } } // namespace v8::internal | 2416 } } // namespace v8::internal |
2417 | 2417 |
2418 #endif // V8_TARGET_ARCH_ARM | 2418 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |