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

Side by Side Diff: src/objects-inl.h

Issue 3169049: Remove dependence of code-stubs on codegen, the virtual frame code generator.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 3 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/objects.h ('k') | src/regexp-macro-assembler.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 return ExtractTypeFromFlags(flags()); 2314 return ExtractTypeFromFlags(flags());
2315 } 2315 }
2316 2316
2317 2317
2318 int Code::arguments_count() { 2318 int Code::arguments_count() {
2319 ASSERT(is_call_stub() || is_keyed_call_stub() || kind() == STUB); 2319 ASSERT(is_call_stub() || is_keyed_call_stub() || kind() == STUB);
2320 return ExtractArgumentsCountFromFlags(flags()); 2320 return ExtractArgumentsCountFromFlags(flags());
2321 } 2321 }
2322 2322
2323 2323
2324 CodeStub::Major Code::major_key() { 2324 int Code::major_key() {
2325 ASSERT(kind() == STUB || kind() == BINARY_OP_IC); 2325 ASSERT(kind() == STUB || kind() == BINARY_OP_IC);
2326 return static_cast<CodeStub::Major>(READ_BYTE_FIELD(this, 2326 return READ_BYTE_FIELD(this, kStubMajorKeyOffset);
2327 kStubMajorKeyOffset));
2328 } 2327 }
2329 2328
2330 2329
2331 void Code::set_major_key(CodeStub::Major major) { 2330 void Code::set_major_key(int major) {
2332 ASSERT(kind() == STUB || kind() == BINARY_OP_IC); 2331 ASSERT(kind() == STUB || kind() == BINARY_OP_IC);
2333 ASSERT(0 <= major && major < 256); 2332 ASSERT(0 <= major && major < 256);
2334 WRITE_BYTE_FIELD(this, kStubMajorKeyOffset, major); 2333 WRITE_BYTE_FIELD(this, kStubMajorKeyOffset, major);
2335 } 2334 }
2336 2335
2337 2336
2338 bool Code::is_inline_cache_stub() { 2337 bool Code::is_inline_cache_stub() {
2339 Kind kind = this->kind(); 2338 Kind kind = this->kind();
2340 return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND; 2339 return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND;
2341 } 2340 }
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
3481 #undef WRITE_INT_FIELD 3480 #undef WRITE_INT_FIELD
3482 #undef READ_SHORT_FIELD 3481 #undef READ_SHORT_FIELD
3483 #undef WRITE_SHORT_FIELD 3482 #undef WRITE_SHORT_FIELD
3484 #undef READ_BYTE_FIELD 3483 #undef READ_BYTE_FIELD
3485 #undef WRITE_BYTE_FIELD 3484 #undef WRITE_BYTE_FIELD
3486 3485
3487 3486
3488 } } // namespace v8::internal 3487 } } // namespace v8::internal
3489 3488
3490 #endif // V8_OBJECTS_INL_H_ 3489 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/regexp-macro-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698