Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: src/arm/assembler-arm.h

Issue 1069633002: [arm] Use position independent table switches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/arm/assembler-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 // The parameter indicates the size of the constant pool (in bytes), including 1448 // The parameter indicates the size of the constant pool (in bytes), including
1449 // the marker and branch over the data. 1449 // the marker and branch over the data.
1450 void RecordConstPool(int size); 1450 void RecordConstPool(int size);
1451 1451
1452 // Writes a single byte or word of data in the code stream. Used 1452 // Writes a single byte or word of data in the code stream. Used
1453 // for inline tables, e.g., jump-tables. The constant pool should be 1453 // for inline tables, e.g., jump-tables. The constant pool should be
1454 // emitted before any use of db and dd to ensure that constant pools 1454 // emitted before any use of db and dd to ensure that constant pools
1455 // are not emitted as part of the tables generated. 1455 // are not emitted as part of the tables generated.
1456 void db(uint8_t data); 1456 void db(uint8_t data);
1457 void dd(uint32_t data); 1457 void dd(uint32_t data);
1458 void dd(Label* label);
1459 1458
1460 // Emits the address of the code stub's first instruction. 1459 // Emits the address of the code stub's first instruction.
1461 void emit_code_stub_address(Code* stub); 1460 void emit_code_stub_address(Code* stub);
1462 1461
1463 PositionsRecorder* positions_recorder() { return &positions_recorder_; } 1462 PositionsRecorder* positions_recorder() { return &positions_recorder_; }
1464 1463
1465 // Read/patch instructions 1464 // Read/patch instructions
1466 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } 1465 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); }
1467 void instr_at_put(int pos, Instr instr) { 1466 void instr_at_put(int pos, Instr instr) {
1468 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; 1467 *reinterpret_cast<Instr*>(buffer_ + pos) = instr;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 public: 1708 public:
1710 explicit EnsureSpace(Assembler* assembler) { 1709 explicit EnsureSpace(Assembler* assembler) {
1711 assembler->CheckBuffer(); 1710 assembler->CheckBuffer();
1712 } 1711 }
1713 }; 1712 };
1714 1713
1715 1714
1716 } } // namespace v8::internal 1715 } } // namespace v8::internal
1717 1716
1718 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1717 #endif // V8_ARM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698