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

Side by Side Diff: src/ppc/macro-assembler-ppc.h

Issue 1214903009: PPC: Fix constant pool overflow access in Get/SetRelocatedValue. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Typo Created 5 years, 5 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/ppc/macro-assembler-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_
6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 Label* failure); 1360 Label* failure);
1361 1361
1362 void JumpIfNotUniqueNameInstanceType(Register reg, Label* not_unique_name); 1362 void JumpIfNotUniqueNameInstanceType(Register reg, Label* not_unique_name);
1363 1363
1364 void EmitSeqStringSetCharCheck(Register string, Register index, 1364 void EmitSeqStringSetCharCheck(Register string, Register index,
1365 Register value, uint32_t encoding_mask); 1365 Register value, uint32_t encoding_mask);
1366 1366
1367 // --------------------------------------------------------------------------- 1367 // ---------------------------------------------------------------------------
1368 // Patching helpers. 1368 // Patching helpers.
1369 1369
1370 // Decode offset from constant pool load instruction(s).
1371 // Caller must place the instruction word at <location> in <result>.
1372 void DecodeConstantPoolOffset(Register result, Register location);
1373
1370 // Retrieve/patch the relocated value (lis/ori pair or constant pool load). 1374 // Retrieve/patch the relocated value (lis/ori pair or constant pool load).
1371 void GetRelocatedValue(Register location, Register result, Register scratch); 1375 void GetRelocatedValue(Register location, Register result, Register scratch);
1372 void SetRelocatedValue(Register location, Register scratch, 1376 void SetRelocatedValue(Register location, Register scratch,
1373 Register new_value); 1377 Register new_value);
1374 1378
1375 void ClampUint8(Register output_reg, Register input_reg); 1379 void ClampUint8(Register output_reg, Register input_reg);
1376 1380
1377 // Saturate a value into 8-bit unsigned integer 1381 // Saturate a value into 8-bit unsigned integer
1378 // if input_value < 0, output_value is 0 1382 // if input_value < 0, output_value is 0
1379 // if input_value > 255, output_value is 255 1383 // if input_value > 255, output_value is 255
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 #define ACCESS_MASM(masm) \ 1573 #define ACCESS_MASM(masm) \
1570 masm->stop(__FILE_LINE__); \ 1574 masm->stop(__FILE_LINE__); \
1571 masm-> 1575 masm->
1572 #else 1576 #else
1573 #define ACCESS_MASM(masm) masm-> 1577 #define ACCESS_MASM(masm) masm->
1574 #endif 1578 #endif
1575 } 1579 }
1576 } // namespace v8::internal 1580 } // namespace v8::internal
1577 1581
1578 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ 1582 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « no previous file | src/ppc/macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698