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

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 7776010: Convert a bunch of ASSERTs to STATIC_ASSERTs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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/x64/builtins-x64.cc ('k') | src/x64/ic-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 3057 matching lines...) Expand 10 before | Expand all | Expand 10 after
3068 __ movq(cache, ContextOperand(rsi, Context::GLOBAL_INDEX)); 3068 __ movq(cache, ContextOperand(rsi, Context::GLOBAL_INDEX));
3069 __ movq(cache, 3069 __ movq(cache,
3070 FieldOperand(cache, GlobalObject::kGlobalContextOffset)); 3070 FieldOperand(cache, GlobalObject::kGlobalContextOffset));
3071 __ movq(cache, 3071 __ movq(cache,
3072 ContextOperand(cache, Context::JSFUNCTION_RESULT_CACHES_INDEX)); 3072 ContextOperand(cache, Context::JSFUNCTION_RESULT_CACHES_INDEX));
3073 __ movq(cache, 3073 __ movq(cache,
3074 FieldOperand(cache, FixedArray::OffsetOfElementAt(cache_id))); 3074 FieldOperand(cache, FixedArray::OffsetOfElementAt(cache_id)));
3075 3075
3076 Label done, not_found; 3076 Label done, not_found;
3077 // tmp now holds finger offset as a smi. 3077 // tmp now holds finger offset as a smi.
3078 ASSERT(kSmiTag == 0 && kSmiTagSize == 1); 3078 STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize == 1);
3079 __ movq(tmp, FieldOperand(cache, JSFunctionResultCache::kFingerOffset)); 3079 __ movq(tmp, FieldOperand(cache, JSFunctionResultCache::kFingerOffset));
3080 SmiIndex index = 3080 SmiIndex index =
3081 __ SmiToIndex(kScratchRegister, tmp, kPointerSizeLog2); 3081 __ SmiToIndex(kScratchRegister, tmp, kPointerSizeLog2);
3082 __ cmpq(key, FieldOperand(cache, 3082 __ cmpq(key, FieldOperand(cache,
3083 index.reg, 3083 index.reg,
3084 index.scale, 3084 index.scale,
3085 FixedArray::kHeaderSize)); 3085 FixedArray::kHeaderSize));
3086 __ j(not_equal, &not_found, Label::kNear); 3086 __ j(not_equal, &not_found, Label::kNear);
3087 __ movq(rax, FieldOperand(cache, 3087 __ movq(rax, FieldOperand(cache,
3088 index.reg, 3088 index.reg,
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
4141 __ jmp(rdx); 4141 __ jmp(rdx);
4142 } 4142 }
4143 4143
4144 4144
4145 #undef __ 4145 #undef __
4146 4146
4147 4147
4148 } } // namespace v8::internal 4148 } } // namespace v8::internal
4149 4149
4150 #endif // V8_TARGET_ARCH_X64 4150 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698