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

Side by Side Diff: src/objects.h

Issue 6656001: Support external arrays in Crankshaft (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: final version Created 9 years, 9 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/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 // Boundaries for testing the type is a JavaScript "object". Note that 576 // Boundaries for testing the type is a JavaScript "object". Note that
577 // function objects are not counted as objects, even though they are 577 // function objects are not counted as objects, even though they are
578 // implemented as such; only values whose typeof is "object" are included. 578 // implemented as such; only values whose typeof is "object" are included.
579 FIRST_JS_OBJECT_TYPE = JS_VALUE_TYPE, 579 FIRST_JS_OBJECT_TYPE = JS_VALUE_TYPE,
580 LAST_JS_OBJECT_TYPE = JS_REGEXP_TYPE, 580 LAST_JS_OBJECT_TYPE = JS_REGEXP_TYPE,
581 // RegExp objects have [[Class]] "function" because they are callable. 581 // RegExp objects have [[Class]] "function" because they are callable.
582 // All types from this type and above are objects with [[Class]] "function". 582 // All types from this type and above are objects with [[Class]] "function".
583 FIRST_FUNCTION_CLASS_TYPE = JS_REGEXP_TYPE 583 FIRST_FUNCTION_CLASS_TYPE = JS_REGEXP_TYPE
584 }; 584 };
585 585
586 static const int kExternalArrayTypeCount = LAST_EXTERNAL_ARRAY_TYPE -
587 FIRST_EXTERNAL_ARRAY_TYPE + 1;
586 588
587 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType); 589 STATIC_CHECK(JS_OBJECT_TYPE == Internals::kJSObjectType);
588 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType); 590 STATIC_CHECK(FIRST_NONSTRING_TYPE == Internals::kFirstNonstringType);
589 STATIC_CHECK(PROXY_TYPE == Internals::kProxyType); 591 STATIC_CHECK(PROXY_TYPE == Internals::kProxyType);
590 592
591 593
592 enum CompareResult { 594 enum CompareResult {
593 LESS = -1, 595 LESS = -1,
594 EQUAL = 0, 596 EQUAL = 0,
595 GREATER = 1, 597 GREATER = 1,
(...skipping 6050 matching lines...) Expand 10 before | Expand all | Expand 10 after
6646 } else { 6648 } else {
6647 value &= ~(1 << bit_position); 6649 value &= ~(1 << bit_position);
6648 } 6650 }
6649 return value; 6651 return value;
6650 } 6652 }
6651 }; 6653 };
6652 6654
6653 } } // namespace v8::internal 6655 } } // namespace v8::internal
6654 6656
6655 #endif // V8_OBJECTS_H_ 6657 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698