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

Side by Side Diff: src/x64/lithium-x64.h

Issue 72813004: Fixed crashes exposed though fuzzing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 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 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 } 1332 }
1333 1333
1334 LOperand* string() const { return inputs_[0]; } 1334 LOperand* string() const { return inputs_[0]; }
1335 LOperand* index() const { return inputs_[1]; } 1335 LOperand* index() const { return inputs_[1]; }
1336 1336
1337 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") 1337 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char")
1338 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) 1338 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar)
1339 }; 1339 };
1340 1340
1341 1341
1342 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { 1342 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 4, 0> {
1343 public: 1343 public:
1344 LSeqStringSetChar(LOperand* string, 1344 LSeqStringSetChar(LOperand* context,
1345 LOperand* string,
1345 LOperand* index, 1346 LOperand* index,
1346 LOperand* value) { 1347 LOperand* value) {
1347 inputs_[0] = string; 1348 inputs_[0] = context;
1348 inputs_[1] = index; 1349 inputs_[1] = string;
1349 inputs_[2] = value; 1350 inputs_[2] = index;
1351 inputs_[3] = value;
1350 } 1352 }
1351 1353
1352 LOperand* string() { return inputs_[0]; } 1354 LOperand* string() { return inputs_[1]; }
1353 LOperand* index() { return inputs_[1]; } 1355 LOperand* index() { return inputs_[2]; }
1354 LOperand* value() { return inputs_[2]; } 1356 LOperand* value() { return inputs_[3]; }
1355 1357
1356 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") 1358 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char")
1357 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) 1359 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar)
1358 }; 1360 };
1359 1361
1360 1362
1361 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { 1363 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> {
1362 public: 1364 public:
1363 explicit LThrow(LOperand* context, LOperand* value) { 1365 explicit LThrow(LOperand* context, LOperand* value) {
1364 inputs_[0] = context; 1366 inputs_[0] = context;
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2864 2866
2865 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2867 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2866 }; 2868 };
2867 2869
2868 #undef DECLARE_HYDROGEN_ACCESSOR 2870 #undef DECLARE_HYDROGEN_ACCESSOR
2869 #undef DECLARE_CONCRETE_INSTRUCTION 2871 #undef DECLARE_CONCRETE_INSTRUCTION
2870 2872
2871 } } // namespace v8::int 2873 } } // namespace v8::int
2872 2874
2873 #endif // V8_X64_LITHIUM_X64_H_ 2875 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698