| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // Force constant pool emission at the end of the deferred code to make | 255 // Force constant pool emission at the end of the deferred code to make |
| 256 // sure that no constant pools are emitted after. | 256 // sure that no constant pools are emitted after. |
| 257 masm()->CheckConstPool(true, false); | 257 masm()->CheckConstPool(true, false); |
| 258 | 258 |
| 259 return !is_aborted(); | 259 return !is_aborted(); |
| 260 } | 260 } |
| 261 | 261 |
| 262 | 262 |
| 263 bool LCodeGen::GenerateDeoptJumpTable() { | 263 bool LCodeGen::GenerateDeoptJumpTable() { |
| 264 // Check that the jump table is accessible from everywhere in the function | 264 // Check that the jump table is accessible from everywhere in the function |
| 265 // code, ie that offsets to the table can be encoded in the 24bit signed | 265 // code, i.e. that offsets to the table can be encoded in the 24bit signed |
| 266 // immediate of a branch instruction. | 266 // immediate of a branch instruction. |
| 267 // To simplify we consider the code size from the first instruction to the | 267 // To simplify we consider the code size from the first instruction to the |
| 268 // end of the jump table. We also don't consider the pc load delta. | 268 // end of the jump table. We also don't consider the pc load delta. |
| 269 // Each entry in the jump table generates one instruction and inlines one | 269 // Each entry in the jump table generates one instruction and inlines one |
| 270 // 32bit data after it. | 270 // 32bit data after it. |
| 271 if (!is_int24((masm()->pc_offset() / Assembler::kInstrSize) + | 271 if (!is_int24((masm()->pc_offset() / Assembler::kInstrSize) + |
| 272 deopt_jump_table_.length() * 2)) { | 272 deopt_jump_table_.length() * 2)) { |
| 273 Abort("Generated code is too large"); | 273 Abort("Generated code is too large"); |
| 274 } | 274 } |
| 275 | 275 |
| (...skipping 4508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4784 ASSERT(osr_pc_offset_ == -1); | 4784 ASSERT(osr_pc_offset_ == -1); |
| 4785 osr_pc_offset_ = masm()->pc_offset(); | 4785 osr_pc_offset_ = masm()->pc_offset(); |
| 4786 } | 4786 } |
| 4787 | 4787 |
| 4788 | 4788 |
| 4789 | 4789 |
| 4790 | 4790 |
| 4791 #undef __ | 4791 #undef __ |
| 4792 | 4792 |
| 4793 } } // namespace v8::internal | 4793 } } // namespace v8::internal |
| OLD | NEW |