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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 last_pc_ = NULL; | 391 last_pc_ = NULL; |
392 | 392 |
393 #ifdef GENERATED_CODE_COVERAGE | 393 #ifdef GENERATED_CODE_COVERAGE |
394 InitCoverageLog(); | 394 InitCoverageLog(); |
395 #endif | 395 #endif |
396 } | 396 } |
397 | 397 |
398 | 398 |
399 Assembler::~Assembler() { | 399 Assembler::~Assembler() { |
400 if (own_buffer_) { | 400 if (own_buffer_) { |
401 if (isolate() != NULL && | 401 if (isolate() != NULL && |
402 isolate()->assembler_spare_buffer() == NULL && | 402 isolate()->assembler_spare_buffer() == NULL && |
403 buffer_size_ == kMinimalBufferSize) { | 403 buffer_size_ == kMinimalBufferSize) { |
404 isolate()->set_assembler_spare_buffer(buffer_); | 404 isolate()->set_assembler_spare_buffer(buffer_); |
405 } else { | 405 } else { |
406 DeleteArray(buffer_); | 406 DeleteArray(buffer_); |
407 } | 407 } |
408 } | 408 } |
409 } | 409 } |
410 | 410 |
411 | 411 |
(...skipping 2759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3171 // specially coded on x64 means that it is a relative 32 bit address, as used | 3171 // specially coded on x64 means that it is a relative 32 bit address, as used |
3172 // by branch instructions. | 3172 // by branch instructions. |
3173 return (1 << rmode_) & kApplyMask; | 3173 return (1 << rmode_) & kApplyMask; |
3174 } | 3174 } |
3175 | 3175 |
3176 | 3176 |
3177 | 3177 |
3178 } } // namespace v8::internal | 3178 } } // namespace v8::internal |
3179 | 3179 |
3180 #endif // V8_TARGET_ARCH_X64 | 3180 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |