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

Side by Side Diff: src/x64/code-stubs-x64.h

Issue 7050039: Revert 8122 (stub call asserts) while test failures are investigated. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/code-stubs-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 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void GenerateOperation(MacroAssembler* masm); 58 void GenerateOperation(MacroAssembler* masm);
59 }; 59 };
60 60
61 61
62 class ToBooleanStub: public CodeStub { 62 class ToBooleanStub: public CodeStub {
63 public: 63 public:
64 ToBooleanStub() { } 64 ToBooleanStub() { }
65 65
66 void Generate(MacroAssembler* masm); 66 void Generate(MacroAssembler* masm);
67 67
68 virtual bool SometimesSetsUpAFrame() { return false; }
69
70 private: 68 private:
71 Major MajorKey() { return ToBoolean; } 69 Major MajorKey() { return ToBoolean; }
72 int MinorKey() { return 0; } 70 int MinorKey() { return 0; }
73 }; 71 };
74 72
75 73
76 class UnaryOpStub: public CodeStub { 74 class UnaryOpStub: public CodeStub {
77 public: 75 public:
78 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode) 76 UnaryOpStub(Token::Value op, UnaryOverwriteMode mode)
79 : op_(op), 77 : op_(op),
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 Register r0); 462 Register r0);
465 463
466 static void GeneratePositiveLookup(MacroAssembler* masm, 464 static void GeneratePositiveLookup(MacroAssembler* masm,
467 Label* miss, 465 Label* miss,
468 Label* done, 466 Label* done,
469 Register elements, 467 Register elements,
470 Register name, 468 Register name,
471 Register r0, 469 Register r0,
472 Register r1); 470 Register r1);
473 471
474 virtual bool SometimesSetsUpAFrame() { return false; }
475
476 private: 472 private:
477 static const int kInlinedProbes = 4; 473 static const int kInlinedProbes = 4;
478 static const int kTotalProbes = 20; 474 static const int kTotalProbes = 20;
479 475
480 static const int kCapacityOffset = 476 static const int kCapacityOffset =
481 StringDictionary::kHeaderSize + 477 StringDictionary::kHeaderSize +
482 StringDictionary::kCapacityIndex * kPointerSize; 478 StringDictionary::kCapacityIndex * kPointerSize;
483 479
484 static const int kElementsStartOffset = 480 static const int kElementsStartOffset =
485 StringDictionary::kHeaderSize + 481 StringDictionary::kHeaderSize +
486 StringDictionary::kElementsStartIndex * kPointerSize; 482 StringDictionary::kElementsStartIndex * kPointerSize;
487 483
488 484
489 #ifdef DEBUG 485 #ifdef DEBUG
490 void Print() { 486 void Print() {
491 PrintF("StringDictionaryLookupStub\n"); 487 PrintF("StringDictionaryLookupStub\n");
492 } 488 }
493 #endif 489 #endif
494 490
495 Major MajorKey() { return StringDictionaryLookup; } 491 Major MajorKey() { return StringDictionaryNegativeLookup; }
496 492
497 int MinorKey() { 493 int MinorKey() {
498 return DictionaryBits::encode(dictionary_.code()) | 494 return DictionaryBits::encode(dictionary_.code()) |
499 ResultBits::encode(result_.code()) | 495 ResultBits::encode(result_.code()) |
500 IndexBits::encode(index_.code()) | 496 IndexBits::encode(index_.code()) |
501 LookupModeBits::encode(mode_); 497 LookupModeBits::encode(mode_);
502 } 498 }
503 499
504 class DictionaryBits: public BitField<int, 0, 4> {}; 500 class DictionaryBits: public BitField<int, 0, 4> {};
505 class ResultBits: public BitField<int, 4, 4> {}; 501 class ResultBits: public BitField<int, 4, 4> {};
506 class IndexBits: public BitField<int, 8, 4> {}; 502 class IndexBits: public BitField<int, 8, 4> {};
507 class LookupModeBits: public BitField<LookupMode, 12, 1> {}; 503 class LookupModeBits: public BitField<LookupMode, 12, 1> {};
508 504
509 Register dictionary_; 505 Register dictionary_;
510 Register result_; 506 Register result_;
511 Register index_; 507 Register index_;
512 LookupMode mode_; 508 LookupMode mode_;
513 }; 509 };
514 510
515 511
516 } } // namespace v8::internal 512 } } // namespace v8::internal
517 513
518 #endif // V8_X64_CODE_STUBS_X64_H_ 514 #endif // V8_X64_CODE_STUBS_X64_H_
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698