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

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

Issue 11312206: Revert change r12912 due to x64 perf issue (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 } 1364 }
1365 LOperand* elements() { return inputs_[0]; } 1365 LOperand* elements() { return inputs_[0]; }
1366 LOperand* key() { return inputs_[1]; } 1366 LOperand* key() { return inputs_[1]; }
1367 uint32_t additional_index() const { return hydrogen()->index_offset(); } 1367 uint32_t additional_index() const { return hydrogen()->index_offset(); }
1368 ElementsKind elements_kind() const { 1368 ElementsKind elements_kind() const {
1369 return hydrogen()->elements_kind(); 1369 return hydrogen()->elements_kind();
1370 } 1370 }
1371 }; 1371 };
1372 1372
1373 1373
1374 template <class T>
1375 inline static bool ArrayOpClobbersKey(T *value) {
1376 CHECK(value->IsLoadKeyed() || value->IsStoreKeyed());
1377 return !value->IsConstant() && (value->key()->representation().IsTagged()
1378 || value->IsDehoisted());
1379 }
1380
1381
1382 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { 1374 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
1383 public: 1375 public:
1384 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { 1376 LLoadKeyedGeneric(LOperand* obj, LOperand* key) {
1385 inputs_[0] = obj; 1377 inputs_[0] = obj;
1386 inputs_[1] = key; 1378 inputs_[1] = key;
1387 } 1379 }
1388 1380
1389 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") 1381 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic")
1390 1382
1391 LOperand* object() { return inputs_[0]; } 1383 LOperand* object() { return inputs_[0]; }
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2493 2485
2494 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2486 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2495 }; 2487 };
2496 2488
2497 #undef DECLARE_HYDROGEN_ACCESSOR 2489 #undef DECLARE_HYDROGEN_ACCESSOR
2498 #undef DECLARE_CONCRETE_INSTRUCTION 2490 #undef DECLARE_CONCRETE_INSTRUCTION
2499 2491
2500 } } // namespace v8::int 2492 } } // namespace v8::int
2501 2493
2502 #endif // V8_X64_LITHIUM_X64_H_ 2494 #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