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

Side by Side Diff: src/builtins.cc

Issue 6334015: Support StringLength in hydrogen (similar to ArrayLength). (Closed)
Patch Set: Created 9 years, 11 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
« no previous file with comments | « src/builtins.h ('k') | src/hydrogen.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 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 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 return HandleApiCallAsFunctionOrConstructor(true, args); 1221 return HandleApiCallAsFunctionOrConstructor(true, args);
1222 } 1222 }
1223 1223
1224 1224
1225 static void Generate_LoadIC_ArrayLength(MacroAssembler* masm) { 1225 static void Generate_LoadIC_ArrayLength(MacroAssembler* masm) {
1226 LoadIC::GenerateArrayLength(masm); 1226 LoadIC::GenerateArrayLength(masm);
1227 } 1227 }
1228 1228
1229 1229
1230 static void Generate_LoadIC_StringLength(MacroAssembler* masm) { 1230 static void Generate_LoadIC_StringLength(MacroAssembler* masm) {
1231 LoadIC::GenerateStringLength(masm); 1231 LoadIC::GenerateStringLength(masm, false);
1232 } 1232 }
1233 1233
1234 1234
1235 static void Generate_LoadIC_StringWrapperLength(MacroAssembler* masm) {
1236 LoadIC::GenerateStringLength(masm, true);
1237 }
1238
1239
1235 static void Generate_LoadIC_FunctionPrototype(MacroAssembler* masm) { 1240 static void Generate_LoadIC_FunctionPrototype(MacroAssembler* masm) {
1236 LoadIC::GenerateFunctionPrototype(masm); 1241 LoadIC::GenerateFunctionPrototype(masm);
1237 } 1242 }
1238 1243
1239 1244
1240 static void Generate_LoadIC_Initialize(MacroAssembler* masm) { 1245 static void Generate_LoadIC_Initialize(MacroAssembler* masm) {
1241 LoadIC::GenerateInitialize(masm); 1246 LoadIC::GenerateInitialize(masm);
1242 } 1247 }
1243 1248
1244 1249
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 if (entry->contains(pc)) { 1536 if (entry->contains(pc)) {
1532 return names_[i]; 1537 return names_[i];
1533 } 1538 }
1534 } 1539 }
1535 } 1540 }
1536 return NULL; 1541 return NULL;
1537 } 1542 }
1538 1543
1539 1544
1540 } } // namespace v8::internal 1545 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698